CVE-2026-35525

LiquidJS has a root restriction bypass for partial and layout loading through symlinked templates

HIGH
7.5
CVSS Score
Published: April 8, 2026 at 07:30 PM UTC
Updated: July 24, 2026 at 09:20 PM UTC
2 products affected across 2 vendorsLiquidjsLiquidjs

Using liquidjs by harttle?

Get instant alerts when new vulnerabilities affect liquidjs - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.4%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 10.25.3
Affected range stops below 10.25.3, so it looks safe — our inference, not a vendor statement
v < 10.25.3
Affected range stops below 10.25.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/harttle/liquidjs/security/advisories/GHSA-56p5-8mhr-2fph
x_refsource_MISCIssue Tracking
Source: cverecord
https://github.com/harttle/liquidjs/pull/867
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/harttle/liquidjs/releases/tag/v10.25.3

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-61

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card