{"cve":"CVE-2026-34166","nvd":{"published":"2026-04-08T19:25:21.400","modified":"2026-07-24T22:10:00.140","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-400"],"references":["https://github.com/harttle/liquidjs/commit/abc058be0f33d6372cd2216f4945183167abeb25","https://github.com/harttle/liquidjs/releases/tag/v10.25.3","https://github.com/harttle/liquidjs/security/advisories/GHSA-mmg9-6m6j-jqqx"],"products":["liquidjs:liquidjs"],"source":"nvd","synced_at":"2026-10-19T22:28:59.047572785+00:00"},"epss":{"cve":"CVE-2026-34166","score":0.00495,"percentile":0.42483,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mmg9-6m6j-jqqx","url":"https://osv.dev/vulnerability/GHSA-mmg9-6m6j-jqqx","summary":"LiquidJS Has Memory Limit Bypass via Quadratic Amplification in `replace` Filter","modified":"2026-09-10T03:51:02.413692991Z","packages":[{"ecosystem":"npm","name":"liquidjs","purl":"pkg:npm/liquidjs","ranges":["<10.25.3"],"fixed":["10.25.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}