{"id":"CVE-2026-45617","published":"2026-06-17T22:14:38Z","modified":"2026-06-18T15:46:28Z","title":"LiquidJS: ReDoS via Quadratic Backtracking in `strip_html` Filter Regex","vendor":"harttle","product":"liquidjs","tier":"tail","description":{"text":"LiquidJS is a Shopify/GitHub Pages compatible template engine written in pure JavaScript. In versions 10.25.7 and below, the built-in strip_html filter uses a regex containing four flawed lazy-quantified alternatives, leading to ReDoS via quadratic backtracking. When the input contains many <script, <style, or <!-- opener tokens without matching closers, the V8 regex engine performs O(N²) backtracking, blocking the Node.js event loop. A single ~350 KB request ('<script'.repeat(50000)) stalls the process for ~10 seconds; cost grows quadratically with input size. The default memoryLimit: Infinity does not bound regex CPU, and even when configured strip_html only charges str.length to the limit — the regex itself runs unbounded.  A single unauthenticated request containing crafted untrusted input can cause severe event-loop blocking and CPU amplification that saturates Node.js workers while bypassing memoryLimit protections. This issue has been fixed in version 10.26.0.","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.00655,"percentile":0.46162,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/harttle/liquidjs/security/advisories/GHSA-r7g9-xpmj-5fcq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/harttle/liquidjs/commit/3616a744b9abeb425c217b340a2397d46176afb8","tags":["x_refsource_MISC"]},{"url":"https://github.com/harttle/liquidjs/releases/tag/v10.26.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":9.23},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"harttle","affectedVersions":[{"vendor":"harttle","product":"liquidjs","versions":["< 10.26.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-18T15:46:01.767622Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"liquidjs","vulnerableRanges":["<10.26.0"],"patched":["10.26.0"],"from":["GHSA-r7g9-xpmj-5fcq"],"provenance":"source"}],"summary":{"text":"LiquidJS, a pure JavaScript template engine, has an inefficient regular expression in its built-in strip_html filter that causes quadratic backtracking (ReDoS) when processing crafted input. An attacker who can get untrusted input rendered by the strip_html filter in a LiquidJS template can send a single unauthenticated request with many unclosed <script, <style, or <!-- tokens to block the Node.js event loop, and the configured memoryLimit does not bound this regex CPU cost.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:07Z"},"euvd":{"id":"EUVD-2026-37823","exploited":false,"provenance":"source"}}