Technology · npm
mermaid (npm) vulnerabilities
Updated . Rebuilt every hour.
Junglewise Threat Intelligence has tracked 16 vulnerabilities in mermaid (npm): 0 in the last 7 days and 5 in the last 90 days, 0 of them critical and 0 exploited in the wild. The most recent, CVE-2026-50159, was published on 6 August 2026.
- Last 7 days
- 0
- Last 90 days
- 5
- Critical, all time
- 0
- Exploited in the wild
- 0
About mermaid (npm)
A JavaScript-based diagramming and charting tool that renders Markdown-inspired text definitions.
Latest mermaid (npm) vulnerabilities
- CVE-2026-50159: Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.8…mediumCVSS 4EPSS 0.6%
- CVE-2026-71439: Mermaid radar diagrams denial of service via unchecked ticks inputmediumCVSS 4EPSS 0.5%
- CVE-2026-71438: Mermaid prototype pollution in configuration APIsmediumCVSS 4EPSS 0.4%
- CVE-2026-71437: Mermaid prototype pollution in architecture-beta diagramsmediumCVSS 4EPSS 0.5%
- CVE-2026-71436: Mermaid infinite loop in XY Charts axis processingmediumCVSS 4EPSS 0.6%
- CVE-2026-41159: Mermaid CSS injection via configuration optionsmediumCVSS 4EPSS 0.5%
- CVE-2026-41150: Mermaid infinite loop denial of service in Gantt chartsmediumCVSS 5.3EPSS 0.5%
- CVE-2026-41149: Mermaid HTML injection in state diagram classDefmediumCVSS 4EPSS 0.5%
- CVE-2026-41148: Mermaid CSS injection in class definitionsmediumCVSS 4EPSS 0.6%
- CVE-2025-54881: Mermaid XSS in sequence diagram labelsmediumCVSS 4EPSS 0.8%
- CVE-2025-54880: Mermaid improper sanitization of architecture diagram iconText leading to XSSmediumCVSS 4EPSS 0.4%
- Mermaid prototype pollution in bundled DOMPurifylowCVSS 3.1
- CVE-2022-31108: Mermaid.js CSS injection via theme variableslowCVSS 3.1EPSS 0.9%
- CVE-2021-43861: Mermaid incorrect sanitization leading to XSSlowCVSS 3.1EPSS 0.9%
- CVE-2021-35513: Mermaid cross-site scripting in antiscript featurelowCVSS 3.1EPSS 1.0%
- mermaid cross-site scripting in diagram renderinginfo
Most severe mermaid (npm) vulnerabilities
Exploited in the wild first, then by severity and CVSS score.
- CVE-2026-41150: Mermaid infinite loop denial of service in Gantt chartsmediumCVSS 5.3EPSS 0.5%
- CVE-2025-54881: Mermaid XSS in sequence diagram labelsmediumCVSS 4EPSS 0.8%
- CVE-2026-50159: Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.8…mediumCVSS 4EPSS 0.6%
- CVE-2026-41148: Mermaid CSS injection in class definitionsmediumCVSS 4EPSS 0.6%
- CVE-2026-71436: Mermaid infinite loop in XY Charts axis processingmediumCVSS 4EPSS 0.6%
- CVE-2026-41159: Mermaid CSS injection via configuration optionsmediumCVSS 4EPSS 0.5%
- CVE-2026-71439: Mermaid radar diagrams denial of service via unchecked ticks inputmediumCVSS 4EPSS 0.5%
- CVE-2026-41149: Mermaid HTML injection in state diagram classDefmediumCVSS 4EPSS 0.5%
- CVE-2026-71437: Mermaid prototype pollution in architecture-beta diagramsmediumCVSS 4EPSS 0.5%
- CVE-2025-54880: Mermaid improper sanitization of architecture diagram iconText leading to XSSmediumCVSS 4EPSS 0.4%
Vulnerabilities per week
The last 13 weeks, by the week each vulnerability was published.
| Week of | Bar | Vulns | Critical |
|---|---|---|---|
| 29 Jun 2026 | 0 | 0 | |
| 6 Jul 2026 | 0 | 0 | |
| 13 Jul 2026 | 0 | 0 | |
| 20 Jul 2026 | 0 | 0 | |
| 27 Jul 2026 | 0 | 0 | |
| 3 Aug 2026 | 5 | 0 | |
| 10 Aug 2026 | 0 | 0 | |
| 17 Aug 2026 | 0 | 0 | |
| 24 Aug 2026 | 0 | 0 | |
| 31 Aug 2026 | 0 | 0 | |
| 7 Sep 2026 | 0 | 0 | |
| 14 Sep 2026 | 0 | 0 | |
| 21 Sep 2026 | 0 | 0 |
How this is built
Junglewise Threat Intelligence collects vulnerabilities from NVD, GitHub Security Advisories, OSV, the CISA Known Exploited Vulnerabilities catalog, FIRST EPSS and vendor advisories, and matches each one to the technologies and vendors it affects. Dates are the date a vulnerability was published, in UTC.
The pages are rebuilt from the database every hour. Frozen weekly and monthly reports never change once published, so they can be cited.
Use this data
The same data is at https://junglewise.ai/threats/technologies/mermaid.json, for scripts and language models. It is free to reuse under CC BY 4.0 with a link back to this page.
Cite as: Junglewise Threat Intelligence, "mermaid (npm) vulnerabilities", https://junglewise.ai/threats/technologies/mermaid, 26 September 2026.