Skip to main content

Pozeiden CVE-2026-77346

| EUVDEUVD-2026-131721 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-20 GitHub_M
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted Mermaid source
  2. Delivery
    Pozeiden emits unescaped SVG markup
  3. Exploit
    Consumer embeds SVG raw in HTML
  4. Execution
    Victim views published page
  5. Impact
    Script 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: click … href values (scheme injection / attribute breakout, no scheme allowlist), style/classDef/:::/linkStyle fill/stroke colors, color:/font-weight: text attributes, %%{init}%% themeVariables (single-quoted JSON values embedding ", which flow globally into every renderer), and quadrant y-axis labels written via raw bufPrint that bypasses xmlEscape. Limiting factors that reduce real-world risk: only Pozeiden <= 0.2.0 is affected (0.3.0 fixes it); a victim must actually view the published HTML (UI:P); the attacker needs content-submission capability; and a consumer that sanitizes the SVG downstream before embedding would neutralize the bug.

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 click A href "javascript:alert(1)" or a %%{init}%% themeVariables breakout. Because SvgWriter interpolates attribute values without XML escaping and href lacks a scheme allowlist, the stored SVG contains live script/handlers. When another user later views the published page, the script executes in that victim's browser session. The advisory documents these payloads as confirmed against the 0.2.0 binary, but no verified standalone exploit tool is provided.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pozeiden < 0.3.0

Affected Packages

euvd pozeiden fix: 0.3.0

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

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
Low

Lifecycle Timeline

1
Patch available
Nov 20, 2026 - 20:18 EUVD

DescriptionCVE.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

EPSS Score
0.6%
Top 50% exploitable
Prevalence
Rare
obscure new Zig MermaidJS renderer, negligible production footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy