Vulnerability · Published Apr 8, 2026 · Assigned by GitHub_M
CVE-2026-39859LiquidJS has a renderFile() / parseFile() bypass configured root and allow arbitrary file read
High 7.5
In plain English
A high-severity path traversal in liquidjs from harttle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.3, liquidjs 10.25.0 documents root as constraining filenames passed to renderFile() and parseFile(), but top-level file loads do not enforce that boundary. A Liquid instance configured with an empty temporary directory as root can return the contents of arbitrary files. This vulnerability is fixed in 10.25.3.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | liquidjs | 10.25.5 | GHSA-v273-448j-v4qj |
Affected products (as reported)
Weakness: CWE-22 · Vector: 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-v273-448j-v4qj x_refsource_CONFIRM