CVE-2026-77346
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.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| pozeiden sc2in |
< 0.3.0 (affected) | CNA: GitHub_M |
pozeidenpozeiden
other |
<= 0.2.0 (affected, GitHub advisory range) | GitHub GHSA-p2c5-qmq5-3r4f |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 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 | CNA: GitHub_M |
| 4.0 / 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4fCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/sc2in/pozeiden/commit/b11a4cf403ec818e47d8246ed7a034f721cc6aceCNA: GitHub_M · x_refsource_MISC
- https://github.com/sc2in/pozeiden/releases/tag/v0.3.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/sc2in/pozeiden/commit/b11a4cf403ec818e47d8246ed7a034f721cc6ace[email protected]
- https://github.com/sc2in/pozeiden/releases/tag/v0.3.0[email protected]
- https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4f[email protected]
- https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4fGitHub Security Advisories · advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.