High severity · published Apr 8, 2026
CVE-2026-35525
LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates
7.5
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 34% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
liquidjs · harttle
< 10.25.3 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-35525
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-35525
Issue Tracking
https://github.com/harttle/liquidjs/pull/867
Release Notes
https://github.com/harttle/liquidjs/releases/tag/v10.25.3
Exploit
https://github.com/harttle/liquidjs/security/advisories/GHSA-56p5-8mhr-2fph
More from liquidjs
10.0
CVE-2026-45618
LiquidJS is Vulnerable to Remote Code Execution
8.7
CVE-2026-61556
LiquidJS: An infinite loop vulnerability in `strip_html` filter
8.2
CVE-2026-55575
LiquidJS: `pop` filter bypasses `memoryLimit` accounting that its array-filter siblings enforce
7.5
CVE-2026-69222
LiquidJS: Uncontrolled Resource Consumption in `join` filter allows template authors to bypass `memoryLimit` and crash the process
7.5
CVE-2026-45357
LiquidJS: Memory and render limit bypass via unbounded width padding in `date` filter (strftime)
