{"id":"CVE-2026-39859","published":"2026-04-08T19:45:21Z","modified":"2026-04-10T20:45:55Z","title":"LiquidJS has a renderFile() / parseFile() bypass configured root and allow arbitrary file read","vendor":"harttle","product":"liquidjs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00465,"percentile":0.4115,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/harttle/liquidjs/security/advisories/GHSA-v273-448j-v4qj","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":8.23},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"harttle","affectedVersions":[{"vendor":"harttle","product":"liquidjs","versions":["< 10.25.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-10T20:45:15.694397Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"liquidjs","vulnerableRanges":["<10.25.5"],"patched":["10.25.5"],"from":["GHSA-v273-448j-v4qj"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal bug in LiquidJS, the pure JavaScript template engine, specifically in its renderFile() and parseFile() functions, which fail to enforce the configured root directory for top-level file loads. An attacker with network access and no authentication or user interaction can read the contents of arbitrary files on the host when the Liquid instance is configured with a root directory, and the attack is low in complexity and requires no special privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:06Z"},"euvd":{"id":"EUVD-2026-20611","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-harttle-liquidjs-cve-2026-30952","parents":[{"from":"CVE-2026-30952","to":"CVE-2026-39859","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/fs/loader.ts"],"commits":["https://github.com/harttle/liquidjs/commit/3cd024d652dc883c46307581e979fe32302adbac","https://github.com/harttle/liquidjs/commit/f41c1fc02fe901598f3328118b42b13bc6bc9b04"],"basis":"shared function","functions":["Loader"]}]}],"packageHistory":[{"cve":"CVE-2026-34166","published":"2026-04-08","fixed":"10.25.3","kev":false},{"cve":"CVE-2026-35525","published":"2026-04-08","fixed":"10.25.3","kev":false},{"cve":"CVE-2026-39412","published":"2026-04-08","fixed":"10.25.4","kev":false,"link":{"from":"CVE-2026-39412","to":"CVE-2026-39859","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:liquidjs","fromFixed":"10.25.4","toFixed":"10.25.5","daysApart":0}]}},{"cve":"CVE-2026-39859","published":"2026-04-08","fixed":"10.25.5","kev":false},{"cve":"CVE-2026-41311","published":"2026-05-09","fixed":"10.25.7","kev":false,"link":{"from":"CVE-2026-39859","to":"CVE-2026-41311","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:liquidjs","fromFixed":"10.25.5","toFixed":"10.25.7","daysApart":31}]}},{"cve":"CVE-2026-44644","published":"2026-06-17","fixed":"10.26.0","kev":false},{"cve":"CVE-2026-44645","published":"2026-06-17","fixed":"10.26.0","kev":false}],"package":"npm:liquidjs"}}