# CVE-2026-35525: LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T15:03:47.000Z
- Modified: 2026-09-10T03:50:42.921Z
- Also known as: GHSA-56p5-8mhr-2fph
- Weaknesses: CWE-61
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- harttle liquidjs: < 10.25.3
- liquidjs (npm): before 10.25.3
- liquidjs liquidjs: before 10.25.3

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/harttle/liquidjs/security/advisories/GHSA-56p5-8mhr-2fph> (exploit, vendor-advisory, web)
- <https://github.com/harttle/liquidjs/pull/867> (issue-tracking, web)
- <https://github.com/harttle/liquidjs/releases/tag/v10.25.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35525> (advisory)
- <https://github.com/harttle/liquidjs> (package)

## Sources

- CVE List: [CVE-2026-35525](https://www.cve.org/CVERecord?id=CVE-2026-35525), CVE Terms of Use, modified 2026-04-08
- GitHub Advisory Database: [GHSA-56p5-8mhr-2fph](https://github.com/advisories/GHSA-56p5-8mhr-2fph), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-35525](https://nvd.nist.gov/vuln/detail/CVE-2026-35525), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-35525 · Whole record: https://cve.day/CVE-2026-35525.json · Rebuilt by cve.day 2026-11-25T22:59:18.305Z
