{"id":"CVE-2026-33287","published":"2026-03-26T00:33:20Z","modified":"2026-03-26T15:02:26Z","title":"LiquidJS has Exponential Memory Amplification through its replace_first Filter $& Pattern","vendor":"harttle","product":"liquidjs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00519,"percentile":0.44985,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/harttle/liquidjs/security/advisories/GHSA-6q5m-63h6-5x4v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":9.0},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"harttle","affectedVersions":[{"vendor":"harttle","product":"liquidjs","versions":["< 10.25.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-26T14:13:05.937301Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"liquidjs","vulnerableRanges":["<10.25.1"],"patched":["10.25.1"],"from":["GHSA-6q5m-63h6-5x4v"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-16064","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-harttle-liquidjs-cve-2022-25948","children":[{"from":"CVE-2026-33287","to":"CVE-2026-34166","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:liquidjs","fromFixed":"10.25.1","toFixed":"10.25.3","daysApart":13},{"kind":"same-code","provenance":"machine","files":["src/filters/string.ts"],"commits":["https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d","https://github.com/harttle/liquidjs/commit/abc058be0f33d6372cd2216f4945183167abeb25"],"basis":"rarely changed file"}]},{"from":"CVE-2026-33287","to":"CVE-2026-69222","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/filters/string.ts"],"commits":["https://github.com/harttle/liquidjs/commit/35d523026345d80458df24c72e653db78b5d061d","https://github.com/harttle/liquidjs/commit/7ab49f999ac045ec1e87f3a7a9fd68dd9e8602b3"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-25948","published":"2022-12-23","fixed":"10.0.0","kev":false},{"cve":"CVE-2026-30952","published":"2026-03-10","fixed":"10.25.0","kev":false,"link":{"from":"CVE-2026-30952","to":"CVE-2026-33287","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:liquidjs","fromFixed":"10.25.0","toFixed":"10.25.1","daysApart":16}]}},{"cve":"CVE-2026-33287","published":"2026-03-26","fixed":"10.25.1","kev":false},{"cve":"CVE-2026-34166","published":"2026-04-08","fixed":"10.25.3","kev":false},{"cve":"CVE-2026-35525","published":"2026-04-08","fixed":"10.25.3","kev":false,"link":{"from":"CVE-2026-33287","to":"CVE-2026-35525","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:liquidjs","fromFixed":"10.25.1","toFixed":"10.25.3","daysApart":13}]}},{"cve":"CVE-2026-39412","published":"2026-04-08","fixed":"10.25.4","kev":false}],"package":"npm:liquidjs"}}