What’s Vulnerable › Vulnerabilities
CVE-2026-41311: LiquidJS is vulnerable to Denial of Service via circular block reference in layout
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-05-09 · updated 2026-07-24
- Weakness: CWE-674
Description
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to version 10.25.7, a circular block reference in {% layout %} / {% block %} causes an infinite recursive loop, consuming all available memory (~4GB) and crashing the Node.js process with FATAL ERROR: JavaScript heap out of memory. This allows any user who can submit a Liquid template to perform a Denial of Service attack. This issue has been patched in version 10.25.7.
Affected products
- harttle liquidjs: before 10.25.7 — fixed in 10.25.7
How to fix
Upgrade to a fixed version: harttle liquidjs 10.25.7. Check the vendor advisory for mitigations.
References
- https://github.com/harttle/liquidjs/commit/e2311dfd6e82f73509308aa8a3a1fafc92e226f0
- https://github.com/harttle/liquidjs/releases/tag/v10.25.7
- https://github.com/harttle/liquidjs/security/advisories/GHSA-4rc3-7j7w-m548
- https://github.com/harttle/liquidjs/security/advisories/GHSA-4rc3-7j7w-m548
Get alerted when CVE-2026-41311 or the next vulnerability affects your stack