Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted Mermaid source
-
DeliveryPozeiden emits unescaped SVG markup
-
ExploitConsumer embeds SVG raw in HTML
-
ExecutionVictim views published page
-
ImpactScript executes in victim session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires BOTH (1) an attacker able to influence the Mermaid source that Pozeiden renders - e.g., submitting diagram text through a consumer like zigmark or policypress (PR:L, low-privileged content author) - and (2) that consumer embedding the generated SVG raw into HTML with no downstream sanitization, which the two named first-party consumers do by design. Concrete trigger surfaces named in the advisory: |
| Impact | This is a genuine but moderate-priority stored XSS (CWE-79), not a drop-everything emergency. The input CVSS 4.0 base score is 6.3 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:P, and the vuln.today Decision label is 'this_month' - consistent with a real, patchable issue rather than 'act_now'/'emergency'. The signals are internally consistent rather than conflicting: network-reachable (AV:N), low complexity (AC:L), but gated by PR:L (the attacker must be able to influence the rendered Mermaid source) and UI:P (a victim must view the published HTML). There is NO CISA KEV entry and NO EPSS score in the supplied data, so there is no evidence of active or automatable exploitation - treat exploitation likelihood as unquantified rather than low. However, the GHSA advisory documents five distinct injection paths with concrete payloads described as confirmed against the 0.2.0 binary, so a public PoC reference exists; it is not packaged/labelled as a verified weaponized exploit. One data conflict to flag: the GHSA package metadata says 'not yet patched', but the CVE description, the v0.3.0 release tag, and commit b11a4cf403 all confirm the fix shipped in 0.3.0 - the fix is real; treat the 'not yet patched' string as stale metadata. Net: real priority for anyone running Pozeiden <= 0.2.0 behind a raw-SVG-embedding consumer (zigmark, policypress), but the limited deployment footprint and the PR:L/UI:P gating keep real-world risk at Medium. |
| Exploit ScenarioDerived | An attacker with the ability to submit Mermaid diagram source to a consumer that embeds Pozeiden's SVG raw into HTML (e.g., zigmark or policypress) stores a payload such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Stored cross-site scripting in Pozeiden, a MermaidJS-to-SVG renderer written in Zig, lets a low-privileged content author who can submit diagram text inject script-bearing SVG that runs when another user views the published HTML. Only versions through 0.2.0 are affected: SvgWriter interpolates attacker-controlled values into SVG attributes and markup without XML escaping and the click href path has no URL scheme allowlist, so href, style/classDef/linkStyle colors, color/font-weight, %%{init}%% themeVariables and quadrant y-axis labels can all break out of their intended context. The two named first-party consumers, zigmark and policypress, embed the generated SVG raw into HTML with no downstream sanitization, which is what turns the rendering defect into XSS; a victim must actually view the published page, and a consumer that sanitized the SVG would neutralize the issue. This is a genuine but moderate-priority CWE-79 bug with a small affected population - no public exploit code is confirmed at time of analysis, the advisory merely references a public testing issue for regression tests, and the vulnerability is fixed in 0.3.0. Overall risk is tempered by the required content-author capability, the victim-view prerequisite and the narrow version window, so patching belongs on a this-month cadence rather than an emergency one.
RemediationAI
Upgrade to Pozeiden 0.3.0, which the vendor released with the fix; the change is in commit https://github.com/sc2in/pozeiden/commit/b11a4cf403ec818e47d8246ed7a034f721cc6ace and the release is at https://github.com/sc2in/pozeiden/releases/tag/v0.3.0, with full details in GHSA-p2c5-qmq5-3r4f. That release makes the SvgWriter attribute writers XML-escape their inputs, adds a scheme allowlist for click href limited to http/https/mailto (rejecting javascript:, data: and vbscript:, including whitespace and entity obfuscation), escapes and validates theme override values at ingestion in applyInitDirective, validates fill/stroke as CSS color tokens, and routes quadrant y-axis labels through the escaped text path. Operationally, links with rejected schemes now render as plain nodes without an anchor, and color values that are not valid CSS color tokens may no longer render as authored - validate your diagram corpus before rolling out. If you cannot upgrade immediately, the actionable containment is to sanitize or otherwise neutralize the SVG downstream before it is embedded in HTML in zigmark and policypress, since those consumers embed it raw by design; restricting who may submit Mermaid source reduces but does not remove exposure, because the payload is stored and executes only when another user views the published page; and following the vendor's suggestion, avoid relying on click callbacks in the raw-embed model. No fixed version is available for deployments pinned to 0.2.0 or earlier, so those must adopt one of the above compensating controls.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pozeiden parses Mermaid diagram source and emits SVG through an SvgWriter abstraction (src/svg/writer.zig); its attribute writers interpolate values with raw Zig format specifiers ({s}) and never escape them, contrary to the type's own doc-comment. Because the emitted SVG is handed to consumers that embed it verbatim into HTML, any unescaped byte in an attribute or element context becomes HTML/script in the host page - classic CWE-79 through an SVG injection sink. The advisory documents five confirmed paths against the 0.2.0 binary: flowchart click href values are only trimmed of quotes and whitespace (src/root.zig) before being spliced into <a href="...">, permitting javascript:/data:/vbscript: schemes and full attribute breakout into a live <script> element; style, classDef, ::: class assignment and linkStyle color values flow unescaped into fill and stroke attributes on rect, circle, polygon and path elements, and an ellipse fragment is built with a raw bufPrint; color and font-weight values land in unescaped <text> attribute slots even though text content itself is escaped; %%{init}%% themeVariables are parsed from single-quoted JSON in which a double quote can be smuggled, and fontFamily/background propagate into every renderer, making that breakout global; and quadrant y-axis labels are written via raw bufPrint as <text> content, bypassing xmlEscape entirely. The 512-byte href buffer is not a mitigation, leaving roughly 480 usable bytes for a payload. Exploitation requires both a user able to influence the Mermaid source that Pozeiden renders and a downstream consumer that embeds the SVG without sanitization, both of which the advisory attributes to zigmark and policypress by design. The vendor fix centralizes escaping and URL validation in the SVG writer (attrEsc, isSafeUrl, openAnchor) and routes quadrant labels through a new textRotated helper. Classified in the CPE data as cpe:2.3:a:sc2in:pozeiden.
Know when Pozeiden gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L
Stored XSS: attacker needs content-submission privilege (PR:L) and a victim must view the page (UI:R); injected script runs in the victim's browser context, changing scope (S:C) with limited confidentiality/integrity impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Pozeiden is a MermaidJS renderer written in Zig. Prior to 0.3.0, Pozeiden emits attacker-controlled Mermaid values into SVG attributes or markup without sufficient XML escaping or URL scheme validation, and first-party consumers such as zigmark and policypress embed the generated SVG raw into HTML. The click href syntax can introduce a dangerous URL scheme or break out of an attribute; style, classDef, ::: class assignment, and linkStyle color values can inject fill or stroke markup; color and font-weight values can escape text attributes; %%{init}%% themeVariables can inject global renderer attributes; and quadrant y-axis labels can introduce raw markup. These paths involve src/svg/writer.zig, src/renderers/flowchart.zig, src/renderers/quadrant.zig, and src/root.zig. An attacker who can influence rendered Mermaid source can therefore store script-bearing SVG that executes when another user views the published HTML. This issue is fixed in version 0.3.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-131721
NVD
CVE.org
EPSS
GitHub
Exploit-DB