Vulnerabilities

Vulnerability · CVE-2026-26226

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.

Published Feb 13, 2026 · catalog updated Oct 8, 2026 · beautiful-mermaid versions prior to

Last checked Nov 5, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-26226. EPSS is 0.57%. Act only if a listed version of beautiful-mermaid versions prior to is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (beautiful-mermaid versions prior to).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium5.3
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.57%
Remediation
Version ranges on file
Affected products
vendor lukilabs beautiful-mermaid 0 <0.1.3

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor lukilabs beautiful-mermaid 0 <0.1.30 <0.1.3

How to fix CVE-2026-26226

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-26226. EPSS is 0.57%. Act only if a listed version of beautiful-mermaid versions prior to is installed.

Which versions are affected?

Compare what you have installed with lukilabs beautiful-mermaid 0 <0.1.3 0 <0.1.3. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 0.57%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Feb 13, 2026 · EUVD

    Detected

    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 e

  2. Oct 8, 2026 · EUVD

    Updated

    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 e

Sources

  • CVE.orgVulnerability recordCVE-2026-26226

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2026-26226

    30-day exploitation probability 0.57%

    first.org
  • EUVDVulnerability recordEUVD-2026-7382

    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 attribut

    euvd.enisa.europa.eu

References

Freshness

Last verified in this catalog Nov 5, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • FIRST EPSSNov 5, 2026
  • CVE.orgNov 4, 2026
  • EUVDNov 2, 2026