CVE-2026-33287 LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern
HighCVSS 7.5
EPSS 0.49%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| liquidjs | < 10.25.1 | 10.25.1 | Fixed |
| npm liquidjs(npm) | < 10.25.1 | 10.25.1 | Fixed |
| harttle liquidjs | = < 10.25.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| harttle liquidjs | = < 10.25.1 | No fix listed |
| npm liquidjs(npm) | < 10.25.1 | 10.25.1 |
| liquidjs | < 10.25.1 | 10.25.1 |
References
- https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v exploit vendor-advisory
- https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com
- github.com
- github.com product