high7.5
CVE-2026-33287
LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | liquidjs | < 10.25.1 | 10.25.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Liquidjs | Liquidjs | before 10.25.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-6q5m-63h6-5x4v
- https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v
- https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d
- https://nvd.nist.gov/vuln/detail/CVE-2026-33287
- https://github.com/harttle/liquidjs/blob/v10.25.1/CHANGELOG.md
- https://github.com/harttle/liquidjs/releases/tag/v10.25.1