Read the docs

Stored XSS in Pozeiden SVG output via Mermaid input values

Priority LOW 28CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

Pozeiden, a MermaidJS renderer written in Zig by sc2in, is affected before 0.3.0. Attacker-controlled Mermaid values are written into SVG attributes or markup without sufficient XML escaping or URL scheme validation, which is a cross-site scripting flaw (CWE-79). An attacker who can influence rendered Mermaid source can store script-bearing SVG that runs when another user views the published HTML, and first-party consumers such as zigmark and policypress embed the generated SVG raw into HTML.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00467 32nd percentileScored 2026-11-30
Fix Fixed pozeiden (sc2in): 0.3.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
sc2inpozeidenbefore 0.3.00.3.0Patch availableCNA
  • pozeiden Vendorsc2in Affected before 0.3.0 Fixed in 0.3.0 Patch available CNA

Remediation

Update sc2in pozeiden to version 0.3.0, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA pozeiden (sc2in) Fixed in 0.3.0

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-77346
  2. 2026-11-24 CISA SSVC decision points changed

References

  • TI-2026-95980 Out-of-bounds read and write in Pozeiden diagram renderers CVSS 4.0HIGH 8.8
  • TI-2026-91755 Sensitive content exposed by CSS-only redaction in PolicyPress CVSS 4.0MEDIUM 5.2

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences