{"id":78736,"date":"2026-05-23T02:04:36","date_gmt":"2026-05-22T22:34:36","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-41149-mermaid-improper-sanitization-of-classdef-in-state-diagrams-leads-to-html-injection\/"},"modified":"2026-05-23T02:04:36","modified_gmt":"2026-05-22T22:34:36","slug":"cve-2026-41149-mermaid-improper-sanitization-of-classdef-in-state-diagrams-leads-to-html-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-41149-mermaid-improper-sanitization-of-classdef-in-state-diagrams-leads-to-html-injection\/","title":{"rendered":"CVE-2026-41149 &#8211; Mermaid: Improper sanitization of `classDef` in state diagrams leads to HTML injection"},"content":{"rendered":"<p>CVE ID :CVE-2026-41149<\/p>\n<p>  Published : May 22, 2026, 10:34 p.m. | 1\u00a0hour, 23\u00a0minutes ago<\/p>\n<p>  Description :Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Versions 10.9.5 and earlier, as well as 11.0.0-alpha.1 through 11.14.0, are vulnerable to HTML injection under the default configuration. Specifically, the classDef directive in Mermaid state diagrams permits DOM injection that escapes the SVG context. However,\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-41149 Published : May 22, 2026, 10:34 p.m. | 1\u00a0hour, 23\u00a0minutes ago Description :Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Versions 10.9.5 and earlier, as well as 11.0.0-alpha.1 through 11.14.0, are vulnerable to HTML injection under the default configuration. Specifically, the classDef directive in &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-78736","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=78736"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78736\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=78736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=78736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=78736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}