{"id":"CVE-2026-77346","aliases":["GHSA-p2c5-qmq5-3r4f"],"title":"Pozeiden: SVG output injection (stored XSS) via click href, style/classDef colors, %%{init}%% theme variables, and quadrant labels","originalDescription":"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.","severity":{"cvss":6.3,"vector":"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00467,"percentile":0.32596},"exploitDb":null},"affected":[],"references":[{"url":"https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4f","type":"x_refsource_CONFIRM"},{"url":"https://github.com/sc2in/pozeiden/commit/b11a4cf403ec818e47d8246ed7a034f721cc6ace","type":"x_refsource_MISC"},{"url":"https://github.com/sc2in/pozeiden/releases/tag/v0.3.0","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77346.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77346","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-24T01:23:48.793Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77346","license":"NVD terms of use","firstSeenAt":"2026-11-20T19:42:57.420Z"},{"name":"osv","at":"2026-11-21T22:40:42.837Z","url":"https://osv.dev/vulnerability/CVE-2026-77346","license":"CC-BY 4.0","firstSeenAt":"2026-11-21T21:34:30.194Z"},{"name":"cvelistV5","at":"2026-11-27T12:02:50.134Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-77346","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T18:34:33.145Z"}],"firstSeenAt":"2026-11-20T18:34:33.145Z","publishedAt":"2026-11-20T18:12:15.809Z","modifiedAt":"2026-11-24T01:17:35.493Z"}