CVE-2026-34166
MEDIUM 5.3CVSS 3.1LiquidJS Has Memory Limit Bypass via Quadratic Amplification in `replace` Filter
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.
- Published
- 8 Apr 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400
- Also known as
- GHSA-mmg9-6m6j-jqqx
- Sources
- NVDJSONOSV GHSA-mmg9-6m6j-jqqxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | liquidjs | liquidjscpe:2.3:a:liquidjs:liquidjs:*:*:*:*:*:node.js:*:* |
< 10.25.3 | 10.25.3 |
| OSV | npm | liquidjs | < 10.25.3 | 10.25.3 |
References
- https://github.com/harttle/liquidjs/commit/abc058be0f33d6372cd2216f4945183167abeb25 · Patch, WEB
- https://github.com/harttle/liquidjs/releases/tag/v10.25.3 · Release Notes, WEB
- https://github.com/harttle/liquidjs/security/advisories/GHSA-mmg9-6m6j-jqqx · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-34166 · ADVISORY
- https://github.com/harttle/liquidjs · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Apr 2026)