What’s Vulnerable › Vulnerabilities
CVE-2026-33287: LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-26 · updated 2026-06-17
- Weakness: CWE-20
Description
LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to version 10.25.1, the `replace_first` filter in LiquidJS uses JavaScript's `String.prototype.replace()` which interprets `$&` as a back reference to the matched substring. The filter only charges `memoryLimit` for the input string length, not the amplified output. An attacker can achieve exponential memory amplification (up to 625,000:1) while staying within the `memoryLimit` budget, leading to denial of service. Version 10.25.1 patches the issue.
Affected products
- harttle liquidjs: before 10.25.1 — fixed in 10.25.1
How to fix
Upgrade to a fixed version: harttle liquidjs 10.25.1. Check the vendor advisory for mitigations.
References
- https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d
- https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v
- https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v
Get alerted when CVE-2026-33287 or the next vulnerability affects your stack