CVE-2026-26226beautiful-mermaid < 0.1.3 SVG Attribute Injection
Updated under an hour ago ()
Does this affect you?
It affects lukilabs beautiful-mermaid. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 5.3 MEDIUM (v4.0, CNA)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
- Weakness (CWE)
- CWE-79
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- VulnCheck
- NVD analysis
- Deferred
- Record last updated
- Oct 8, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
lukilabs beautiful-mermaid lukilabs:beautiful_mermaid (from the name) | before 0.1.3 | CNA record |
References
- https://github.com/lukilabs/beautiful-mermaid/releases/tag/v0.1.3release-notes, patch
- https://github.com/lukilabs/beautiful-mermaid/pull/8issue-tracking
- https://neo.projectdiscovery.io/share/cec71dc7-a8eb-417e-b8b4-666644796c1etechnical-description, exploit
- https://www.vulncheck.com/advisories/beautiful-mermaid-svg-attribute-injectionthird-party-advisory
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.