CVE-2026-26226CWE-79cross-site-scripting

CVE-2026-26226

published February 13, 2026

CVSS
5.3
EPSS
1%
Percentile
54.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
5.3 · NONE
CVSS v4.0
Not supplied
EPSS
0.00752 · 54.5th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-02-13T22:16Z
References (4)
EPSS history
Timeline
  • 13 FEB 16:35Z
    beautiful-mermaid < 0.1.3 SVG Attribute Injection
    cvelistv5