CVE Explorer
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. 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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","packageName":"beautiful-mermaid","packageURL":"pkg:github/lukilabs/beautiful-mermaid","product":"beautiful-mermaid","repo":"https://github.com/lukilabs/beautiful-mermaid","vendor":"lukilabs","versions":[{"lessThan":"0.1.3","status":"affected","version":"0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1ee6c69481ef94ce7fdc90e6c296be02af3cb9e9490a17fe6c801cd52ac0f31d · sha256:64997bd787b05ad8… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.3,"baseSeverity":"MEDIUM","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact…
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1ee6c69481ef94ce7fdc90e6c296be02af3cb9e9490a17fe6c801cd52ac0f31d · sha256:64997bd787b05ad8… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1ee6c69481ef94ce7fdc90e6c296be02af3cb9e9490a17fe6c801cd52ac0f31d · sha256:64997bd787b05ad8… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"tags":["issue-tracking"],"url":"https://github.com/lukilabs/beautiful-mermaid/pull/8"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1ee6c69481ef94ce7fdc90e6c296be02af3cb9e9490a17fe6c801cd52ac0f31d · sha256:64997bd787b05ad8… · /containers/cna/references/1
{"tags":["release-notes","patch"],"url":"https://github.com/lukilabs/beautiful-mermaid/releases/tag/v0.1.3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1ee6c69481ef94ce7fdc90e6c296be02af3cb9e9490a17fe6c801cd52ac0f31d · sha256:64997bd787b05ad8… · /containers/cna/references/0
{"tags":["technical-description","exploit"],"url":"https://neo.projectdiscovery.io/share/cec71dc7-a8eb-417e-b8b4-666644796c1e"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1ee6c69481ef94ce7fdc90e6c296be02af3cb9e9490a17fe6c801cd52ac0f31d · sha256:64997bd787b05ad8… · /containers/cna/references/2
{"tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/beautiful-mermaid-svg-attribute-injection"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1ee6c69481ef94ce7fdc90e6c296be02af3cb9e9490a17fe6c801cd52ac0f31d · sha256:64997bd787b05ad8… · /containers/cna/references/3
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.