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

目标: 1000 元 · 已筹: 1110

100%

CVE-2026-41148— Mermaid classDefs不恰当清理导致CSS注入

AI 预测 7.5 利用难度: 较易 EPSS 0.06% · P18

影响版本矩阵 2

厂商产品版本范围状态
mermaid-jsmermaid>= 11.0.0-alpha.1, < 11.15.0affected
< 10.9.6affected
获取后续新漏洞提醒登录后订阅

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

漏洞信息

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

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

Vulnerability Title
Mermaid: Improper sanitization of `classDefs` in diagrams leads to CSS injection
来源: 美国国家漏洞数据库 NVD
Vulnerability Description
Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Versions 10.9.5 and prior, in addition to 11.0.0-alpha.1 through 11.12.0 are vulnerable to CSS injection through improper sanitization. The state diagram (and any other diagram type that routes user-controlled style strings through the createCssStyles parser) captures classDef values using an unrestricted regex that matches everything up to a newline. That value then flows unsanitized through addStyleClass() into createCssStyles() and is assigned to style.innerHTML, so a closing brace (}) in the value terminates the generated CSS selector and turns everything after it into a new CSS rule on the page. This enables page defacement, user tracking via url() callbacks, and DOM attribute exfiltration. This issue has been fixed in versions 10.9.6 and 11.15.0. If developers are unable to immediately upgrade, they can work around this issue by setting "securityLevel": "sandbox", which prevents the issue by rendering the mermaid diagram in a sandboxed <iframe>.
来源: 美国国家漏洞数据库 NVD
CVSS Information
N/A
来源: 美国国家漏洞数据库 NVD
Vulnerability Type
对生成代码的控制不恰当(代码注入)
来源: 美国国家漏洞数据库 NVD

受影响产品

厂商产品影响版本CPE订阅
mermaid-jsmermaid >= 11.0.0-alpha.1, < 11.15.0 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

登录查看更多情报信息。

CVE-2026-41148 补丁与修复 (2)

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

CVE-2026-41148 厂商页面 (2)

CVE-2026-41148 其他参考 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-41148

暂无评论


发表评论