CVE-2026-34166 json
LiquidJS has a Memory Limit Bypass via Quadratic Amplification in `replace` Filter
published 2026-04-08 7 mo ago modified 2026-09-10 1 mo ago also GHSA-mmg9-6m6j-jqqx , EUVD-2026-20554
- cvss
- 3.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm liquidjs 10.25.3
- liquidjs liquidjs 10.25.3
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/harttle/liquidjs/security/advisories/GHSA-mmg9-6m6j-jqqx referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | liquidjs | <10.25.3 |
10.25.3 |
Affected products
- harttle liquidjs
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/harttle/liquidjs/commit/abc058be0f33d6372cd2216f4945183167abeb25
web, patch
-
github.com
/harttle/liquidjs/security/advisories/GHSA-mmg9-6m6j-jqqx
web, exploit, vendor-advisory
-
github.com
/harttle/liquidjs/releases/tag/v10.25.3
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-34166
advisory
-
github.com
/harttle/liquidjs
package
Sources
- CVE List CVE-2026-34166
- GitHub Advisory GHSA-mmg9-6m6j-jqqx
- NVD CVE-2026-34166
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.