CVE-2026-45617

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.
Configurations

No configuration.

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) LiquidJS es un motor de plantillas compatible con Shopify/GitHub Pages escrito en JavaScript puro. En las versiones 10.25.7 e inferiores, el filtro incorporado strip_html utiliza una expresión regular (regex) que contiene cuatro alternativas cuantificadas perezosamente defectuosas, lo que lleva a ReDoS a través de retroceso cuadrático. Cuando la entrada contiene muchos tokens de apertura <script, <style o [comment] sin sus cierres correspondientes, el motor de expresiones regulares V8 realiza un retroceso O(N²), bloqueando el bucle de eventos de Node.js. Una única solicitud de ~350 KB (’<script’.repeat(50000)) detiene el proceso durante ~10 segundos; el costo crece cuadráticamente con el tamaño de la entrada. El memoryLimit: Infinity predeterminado no limita la CPU de la expresión regular, e incluso cuando está configurado, strip_html solo carga str.length al límite - la expresión regular en sí se ejecuta sin límites. Una única solicitud no autenticada que contenga una entrada no confiable manipulada puede causar un bloqueo severo del bucle de eventos y una amplificación de la CPU que satura los trabajadores de Node.js mientras elude las protecciones de memoryLimit. Este problema ha sido solucionado en la versión 10.26.0.

Information

Published : 2026-06-17 23:17

Updated : 2026-10-25 23:10


NVD link : CVE-2026-45617

Mitre link : CVE-2026-45617

CVE.ORG link : CVE-2026-45617


JSON object : View

Products Affected

No product.

CWE
CWE-1333

Inefficient Regular Expression Complexity