{"id":"CVE-2026-26226","revision":"7122153c478d470ab7c0d82f7ba75776","records":[{"revision":"7122153c478d470ab7c0d82f7ba75776","observedAt":"2026-10-25T06:17:22.45+00:00","statement":{"source":"nvd","id":"CVE-2026-26226","aliases":[],"title":"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 direc…","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.","state":0,"publishedAt":"2026-02-13T17:16:14.073+00:00","modifiedAt":"2026-10-08T16:17:12.243+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · disclosure@vulncheck.com · Secondary","vector":"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","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/lukilabs/beautiful-mermaid/pull/8","https://github.com/lukilabs/beautiful-mermaid/releases/tag/v0.1.3","https://neo.projectdiscovery.io/share/cec71dc7-a8eb-417e-b8b4-666644796c1e","https://www.vulncheck.com/advisories/beautiful-mermaid-svg-attribute-injection"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-26226","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-79"],"productCriteria":[],"sourceDates":{"published":"2026-02-13T17:16:14.073","lastModified":"2026-10-08T16:17:12.243"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-26226","identifiers":["CVE-2026-26226"]},"retained":false,"historicalAffected":[]}],"coverage":[]}