CVE-2026-33287
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| harttle | liquidjs | < 10.25.1 | affected |
Weaknesses
- CWE-20: CWE-20: Improper Input Validation
- CWE-400: CWE-400: Uncontrolled Resource Consumption
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: yes
- Technical Impact: partial
Additional References
References
- https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v
- https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.