Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-50159— Mermaid allows CSS injection applying to sibling elements of the diagram

CVSS 5.3 · Medium

Possible ATT&CK Techniques 1AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-50159

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Mermaid allows CSS injection applying to sibling elements of the diagram
Source: CVE Program / CVE List V5
Vulnerability Description
Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.8 and 11.16.1, Mermaid is vulnerable to CSS injection via sibling combinator selectors generated from diagram-supplied class or id names. An attacker who can supply diagram text can inject arbitrary CSS into the rendered page, potentially altering the appearance or behavior of unrelated page elements. This issue is fixed in versions 10.9.8 and 11.16.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

VendorProductAffected VersionsCPESubscribe
mermaid-jsmermaid < 10.9.8 -

II. Public POCs for CVE-2026-50159

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-50159

登录查看更多情报信息。

Patches & Fixes for CVE-2026-50159 (3)

Vendor Advisories for CVE-2026-50159 (1)

Vendor Pages for CVE-2026-50159 (1)

Other References for CVE-2026-50159 (1)

Same Patch Batch · mermaid-js · 2026-08-06 · 5 CVEs total

CVE-2026-714376.5 MEDIUMMermaid Architecture diagrams are vulnerable to prototype pollution
CVE-2026-714395.3 MEDIUMMermaid radar diagrams are vulnerable to DoS
CVE-2026-714365.3 MEDIUMMermaid XY Charts are vulnerable to an infinite loop DoS
CVE-2026-714382.4 LOWMermaid configuration APIs allow prototype pollution

IV. Related Vulnerabilities

V. Comments for CVE-2026-50159

No comments yet


Leave a comment