Template Engine Vulnerability in LiquidJS for Shopify and GitHub Pages
CVE-2026-39859
What is CVE-2026-39859?
LiquidJS, a template engine compatible with Shopify and GitHub Pages, contains a vulnerability in versions prior to 10.25.3. The issue arises due to insufficient constraints on filenames when using functions such as renderFile() and parseFile(). Specifically, while documents root is properly enforced under normal operations, top-level file loads can bypass this restriction, allowing an attacker to access arbitrary files. This flaw can be exploited if a Liquid instance is configured with an empty temporary directory as the root directory. Consequently, unauthorized file content can be returned, potentially leading to sensitive information disclosure. Users should upgrade to LiquidJS version 10.25.3 or later to mitigate this risk.
Affected Version(s)
liquidjs < 10.25.3
