Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. liquidjs
  4. ›
  5. CVE-2026-45617

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

May 27, 2026

The built-in strip_html filter in liquidjs uses a regex containing four lazy-quantified alternatives. 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.

References

  • github.com/advisories/GHSA-r7g9-xpmj-5fcq
  • github.com/harttle/liquidjs/releases/tag/v10.26.0
  • github.com/harttle/liquidjs/security/advisories/GHSA-r7g9-xpmj-5fcq
  • nvd.nist.gov/vuln/detail/CVE-2026-45617

Code Behaviors & Features

Detect and mitigate CVE-2026-45617 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 10.26.0

Fixed versions

  • 10.26.0

Solution

Upgrade to version 10.26.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/liquidjs/CVE-2026-45617.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:51 +0000.