Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.0

CVE-2026-77346: Pozeiden before 0.3.0 can embed malicious scripts in SVG

CVE-2026-77346 · published 6 days ago
Summary

The Pozeiden tool that creates Mermaid diagrams can insert attacker-controlled content into the SVG files it produces, allowing hidden JavaScript to run when the SVG is displayed in a web page. This happens because the tool does not properly clean certain diagram attributes and labels before putting them into the SVG code. Upgrade Pozeiden to version 0.3.0 or later to stop the risk.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
sc2in pozeiden < 0.3.0
Original advisory text
Pozeiden: SVG output injection (stored XSS) via click href, style/classDef colors, %%{init}%% theme variables, and quadrant labels
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
7.0 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published20 Nov 2026
Updated26 Nov 2026
First seen20 Nov 2026
Sources
CVE-2026-77346 · MITRE
Track software like this
Free during beta