# CVE-2026-33287: LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-25T17:44:23.000Z
- Modified: 2026-10-29T17:44:46.521Z
- Also known as: GHSA-6q5m-63h6-5x4v
- Weaknesses: CWE-20, CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- harttle liquidjs: < 10.25.1
- liquidjs (npm): before 10.25.1
- liquidjs liquidjs: before 10.25.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v> (exploit, vendor-advisory, web)
- <https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33287> (advisory)
- <https://github.com/harttle/liquidjs> (package)
- <https://github.com/harttle/liquidjs/blob/v10.25.1/CHANGELOG.md> (web)
- <https://github.com/harttle/liquidjs/releases/tag/v10.25.1> (web)

## Sources

- CVE List: [CVE-2026-33287](https://www.cve.org/CVERecord?id=CVE-2026-33287), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-6q5m-63h6-5x4v](https://github.com/advisories/GHSA-6q5m-63h6-5x4v), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-33287](https://nvd.nist.gov/vuln/detail/CVE-2026-33287), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33287 · Whole record: https://cve.day/CVE-2026-33287.json · Rebuilt by cve.day 2026-11-25T22:59:16.945Z
