CVE-2026-26226 json
beautiful-mermaid < 0.1.3 SVG Attribute Injection
published 8mo ago modified yesterday also EUVD-2026-7382 , GHSA-cgmm-x5ww-q5cr
- cvss
- 5.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
beautiful-mermaid versions prior to 0.1.3 contain an SVG attribute injection issue that can lead to cross-site scripting (XSS) when rendering attacker-controlled Mermaid diagrams. User-controlled values from Mermaid style and classDef directives are interpolated into SVG attribute values without proper escaping, allowing crafted input to break out of an attribute context and inject arbitrary SVG elements/attributes into the rendered output. When the generated SVG is embedded in a web page, this can result in script execution in the context of the embedding origin.
Patch / fix
- npm beautiful-mermaid 0.1.3
- lukilabs beautiful-mermaid 0.1.3
Is CVE-2026-26226 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 8mo ago
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- neo.projectdiscovery.io https://neo.projectdiscovery.io/share/cec71dc7-a8eb-417e-b8b4-666644796c1e referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| CNA | 4.0 | 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | beautiful-mermaid | <0.1.3 |
0.1.3 |
Affected products
- lukilabs beautiful-mermaid
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/lukilabs/beautiful-mermaid/releases/tag/v0.1.3
release-notes, patch, web
-
github.com
/lukilabs/beautiful-mermaid/pull/8
issue-tracking, patch, web
-
github.com
/lukilabs/beautiful-mermaid/commit/68f3ab8c9658e7f4a3b749e06a6b96e4c3f55db1
web
-
neo.projectdiscovery.io
/share/cec71dc7-a8eb-417e-b8b4-666644796c1e
technical-description, exploit, web
-
vulncheck.com
/advisories/beautiful-mermaid-svg-attribute-injection
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-26226
advisory
-
github.com
/lukilabs/beautiful-mermaid
package
Sources
- CVE List CVE-2026-26226
- GitHub Advisory GHSA-cgmm-x5ww-q5cr
- NVD CVE-2026-26226
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.