CVE-2026-35525
published high CVSS 4.0 · 8.2LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| harttle | — | liquidjs< 10.25.3 | Affected | Not stated | GitHub_M |
Description
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.3, for {% include %}, {% render %}, and {% layout %}, LiquidJS checks whether the candidate path is inside the configured partials or layouts roots before reading it. That check is path-based, not realpath-based. Because of that, a file like partials/link.liquid passes the directory containment check as long as its pathname is under the allowed root. If link.liquid is actually a symlink to a file outside the allowed root, the filesystem follows the symlink when the file is opened and LiquidJS renders the external target. So the restriction is applied to the path string that was requested, not to the file that is actually read. This matters in environments where an attacker can place templates or otherwise influence files under a trusted template root, including uploaded themes, extracted archives, mounted content, or repository-controlled template trees. This vulnerability is fixed in 10.25.3.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| harttle | liquidjs | < 10.25.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-61 CWE-61: UNIX Symbolic Link (Symlink) Following
References
3Provider assertions
2GitHub_M · cna
LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 375aafc7547e5cce4e3b80a11ca0baaacf37668491f903e231bedf559501f59c
- Ingested
- 23 Sep 2026, 09:11:49 UTC
- Source record
- Official CVE record