目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-104844— PostCSS 解析器二次复杂度漏洞允许CPU耗尽

一分钟漏洞结论

影响对象
postcss postcss-selector-parser
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

PostCSS Selector Parser 是一个 CSS 选择器解析器,它与 PostCSS 集成,但不依赖 PostCSS。在版本 7.1.6 之前,src/parser.js 中的 splitWord() 函数可能将一个平面选择器作为单个词元接收,该词元包含多个类(class)或 ID 索引,因为句点(.)和哈希(#)字符未被用作词元中的单词分隔符。uniqs() 去重函数以及按索引进行的类和 ID 成员资格检查会反复扫描类和 ID 索引数组,同时另一个用于过滤 Sass 插值的步骤也执行重复的线性扫描。

CVSS 5.9 · Medium

可能的 ATT&CK 技术 1 AI

T1496 · Resource Hijacking

影响版本矩阵 1

厂商产品 版本范围状态
postcss postcss-selector-parser < 7.1.6 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-104844 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
PostCSS: Quadratic complexity in flat selector parsing allows CPU exhaustion
来源: CVE Program / CVE List V5
Vulnerability Description
PostCSS Selector Parser is a CSS selector parser that integrates with PostCSS but does not require it. Prior to 7.1.6, src/parser.js splitWord() can receive a flat selector as one word token carrying many class or ID indexes because period and hash characters are not tokenizer word delimiters. The uniqs() deduplication and per-index class and ID membership checks repeatedly scan the class and ID index arrays, while a separate Sass-interpolation filtering pass also performs repeated linear scanning. Together, these passes make parsing quadratic in the number of indexes and allow a crafted selector to occupy a synchronous parser thread. The maxNestingDepth guard does not mitigate the issue because the hostile selector can have zero nesting depth. Only consumers that synchronously parse untrusted selectors in an exposed request path are affected; ordinary build-time parsing of trusted sources is not affected. This issue is fixed in version 7.1.6.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
未加控制的资源消耗(资源穷尽)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
postcss postcss-selector-parser < 7.1.6 -

二、漏洞 CVE-2026-104844 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-104844 的情报信息

请登录查看更多情报信息。

CVE-2026-104844 补丁与修复 (1)

CVE-2026-104844 厂商安全公告 (1)

CVE-2026-104844 厂商页面 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-104844

暂无评论


发表评论