BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-26226 in Diagrams products

No CVSS score published

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, all...

Affects 0 products from 2 vendors. Facts below cite their sources.

CVSS v45.3
EPSS0.8%
EPSS percentile53th
FixUnknown

Affected products and versions

VendorProductAffected versions
Diagrams — —
Script — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-26226
BreachSpider IDBS-2026-GLOBAL-275591-I
Published2026-02-13
Last modified2026-10-08
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-79: Cross-Site Scripting (XSS)

Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.

Related attack patterns (CAPEC)

CAPEC-85 AJAX Footprinting via CWE-79

CAPEC-209 XSS Using MIME Type Mismatch via CWE-79

CAPEC-588 DOM-Based XSS via CWE-79

CAPEC-591 Reflected XSS via CWE-79

CAPEC-592 Stored XSS via CWE-79

Show all 6

CAPEC-63 Cross-Site Scripting (XSS) via CWE-79

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

beautiful-mermaid versions prior to 0.1.3 are vulnerable to SVG attribute injection, which can lead to cross-site scripting (XSS) when rendering attacker-controlled Mermaid diagrams.

The vulnerability arises from user-controlled values from Mermaid style and classDef directives being interpolated into SVG attribute values without proper escaping, allowing crafted input to break out of an attribute context and inject arbitrary SVG elements.

Questions

What is CVE-2026-26226?

beautiful-mermaid versions prior to 0.1.3 are vulnerable to SVG attribute injection, which can lead to cross-site scripting (XSS) when rendering attacker-controlled Mermaid diagrams.

Is CVE-2026-26226 actively exploited?

No confirmed active exploitation of CVE-2026-26226 as of 2026-10-11.

How do I remediate CVE-2026-26226?

Priority: HIGH.

What systems are affected by CVE-2026-26226?

CVE-2026-26226 affects Diagrams; Script.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Diagrams","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-08.