CVE-2026-35525

HIGH

LiquidJS <10.25.3 Symlinked Templates - Root Restriction Bypass

Title source: manual
STIX 2.1

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.

References (3)

Core 3
Core References
X_Refsource_Misc x_refsource_misc
https://github.com/harttle/liquidjs/pull/867

Scores

CVSS v3 7.5
EPSS 0.0040
EPSS Percentile 31.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-61
Status published
Products (3)
harttle/liquidjs < 10.25.3
liquidjs/liquidjs < 10.25.3
npm/liquidjs 0 - 10.25.3npm
Published Apr 08, 2026
Tracked Since Apr 09, 2026