# CVE-2026-45617: LiquidJS: ReDoS via Quadratic Backtracking in `strip_html` Filter Regex

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-27T18:08:19.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-r7g9-xpmj-5fcq
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- harttle liquidjs: < 10.26.0
- liquidjs (npm): before 10.26.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/harttle/liquidjs/security/advisories/GHSA-r7g9-xpmj-5fcq> (exploit, web)
- <https://github.com/harttle/liquidjs/commit/3616a744b9abeb425c217b340a2397d46176afb8> (web)
- <https://github.com/harttle/liquidjs/releases/tag/v10.26.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45617> (advisory)
- <https://github.com/harttle/liquidjs> (package)

## Sources

- CVE List: [CVE-2026-45617](https://www.cve.org/CVERecord?id=CVE-2026-45617), CVE Terms of Use, modified 2026-06-18
- GitHub Advisory Database: [GHSA-r7g9-xpmj-5fcq](https://github.com/advisories/GHSA-r7g9-xpmj-5fcq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-45617](https://nvd.nist.gov/vuln/detail/CVE-2026-45617), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-45617 · Whole record: https://cve.day/CVE-2026-45617.json · Rebuilt by cve.day 2026-11-25T22:59:25.019Z
