漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
LiquidJS: ReDoS via Quadratic Backtracking in `strip_html` Filter Regex
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
CWE-1333
Vulnerability Title
Yang Jun liquidjs 资源管理错误漏洞
Vulnerability Description
harttle liquidjs是harttle的嵌入式Web服务器。 Yang Jun liquidjs 10.26.0之前版本存在资源管理错误漏洞,该漏洞源于内置的 strip_html 过滤器使用了包含四个有缺陷的惰性量词替代方案的正则表达式,导致通过二次回溯引发正则拒绝服务攻击,可能导致未经身份验证的攻击者在单次请求中包含特制的不可信输入,造成严重的事件循环阻塞和CPU放大。
CVSS Information
N/A
Vulnerability Type
N/A