high7.5
CVE-2026-41311
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript.
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | liquidjs | < 10.25.7 | 10.25.7 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Liquidjs | Liquidjs | before 10.25.7 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-4rc3-7j7w-m548
- https://github.com/harttle/liquidjs/security/advisories/GHSA-4rc3-7j7w-m548
- https://github.com/harttle/liquidjs/commit/e2311dfd6e82f73509308aa8a3a1fafc92e226f0
- https://nvd.nist.gov/vuln/detail/CVE-2026-41311
- https://github.com/harttle/liquidjs/releases/tag/v10.25.7