# CVE-2026-34166: LiquidJS has a Memory Limit Bypass via Quadratic Amplification in `replace` Filter

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.53%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T15:00:29.000Z
- Modified: 2026-09-10T03:51:02.413Z
- Also known as: GHSA-mmg9-6m6j-jqqx
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

LiquidJS is a Shopify / GitHub Pages compatible template engine in pure JavaScript. Prior to 10.25.3, the replace filter in LiquidJS incorrectly accounts for memory usage when the memoryLimit option is enabled. It charges str.length + pattern.length + replacement.length bytes to the memory limiter, but the actual output from str.split(pattern).join(replacement) can be quadratically larger when the pattern occurs many times in the input string. This allows an attacker who controls template content to bypass the memoryLimit DoS protection with approximately 2,500x amplification, potentially causing out-of-memory conditions. This vulnerability is fixed in 10.25.3.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/harttle/liquidjs/security/advisories/GHSA-mmg9-6m6j-jqqx> (exploit, vendor-advisory, web)
- <https://github.com/harttle/liquidjs/commit/abc058be0f33d6372cd2216f4945183167abeb25> (patch, web)
- <https://github.com/harttle/liquidjs/releases/tag/v10.25.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34166> (advisory)
- <https://github.com/harttle/liquidjs> (package)

## Sources

- CVE List: [CVE-2026-34166](https://www.cve.org/CVERecord?id=CVE-2026-34166), CVE Terms of Use, modified 2026-04-10
- GitHub Advisory Database: [GHSA-mmg9-6m6j-jqqx](https://github.com/advisories/GHSA-mmg9-6m6j-jqqx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-34166](https://nvd.nist.gov/vuln/detail/CVE-2026-34166), Public domain, modified 2026-07-24

---

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