Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Liquidjs | Liquidjs | < 10.25.3 |
Related Weaknesses (CWE)
References
- https://github.com/harttle/liquidjs/pull/867Issue Tracking
- https://github.com/harttle/liquidjs/releases/tag/v10.25.3Release Notes
- https://github.com/harttle/liquidjs/security/advisories/GHSA-56p5-8mhr-2fphExploitVendor Advisory
FAQ
What is CVE-2026-35525?
CVE-2026-35525 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 i...
How severe is CVE-2026-35525?
CVE-2026-35525 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-35525?
Check the references section above for vendor advisories and patch information. Affected products include: Liquidjs Liquidjs.