{"cve":"CVE-2026-35525","nvd":{"published":"2026-04-08T20:16:24.913","modified":"2026-07-24T21:10:00.143","status":"Analyzed","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_v4":{"vector":"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","score":8.2},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-61"],"references":["https://github.com/harttle/liquidjs/pull/867","https://github.com/harttle/liquidjs/releases/tag/v10.25.3","https://github.com/harttle/liquidjs/security/advisories/GHSA-56p5-8mhr-2fph"],"products":["liquidjs:liquidjs"],"source":"nvd","synced_at":"2026-10-19T22:28:59.047572785+00:00"},"epss":{"cve":"CVE-2026-35525","score":0.00396,"percentile":0.33865,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-56p5-8mhr-2fph","url":"https://osv.dev/vulnerability/GHSA-56p5-8mhr-2fph","summary":"LiquidJS: Root restriction bypass for partial and layout loading through symlinked templates","modified":"2026-09-10T03:50:42.921338918Z","packages":[{"ecosystem":"npm","name":"liquidjs","purl":"pkg:npm/liquidjs","ranges":["<10.25.3"],"fixed":["10.25.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}