{"id":"CVE-2026-77346","title":"Pozeiden is a MermaidJS renderer written in Zig","summary":"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 …","severity":"medium","cvss":6.3,"cvssVector":"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","cwe":["CWE-79"],"vendor":"sc2in","product":"pozeiden","affected":["pozeiden < 0.3.0"],"published":"2026-11-20","updated":"2026-11-24","sourceUpdated":"2026-11-24T01:17:35.493","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-77346","references":[{"url":"https://github.com/sc2in/pozeiden/commit/b11a4cf403ec818e47d8246ed7a034f721cc6ace","label":"security-advisories@github.com"},{"url":"https://github.com/sc2in/pozeiden/releases/tag/v0.3.0","label":"security-advisories@github.com"},{"url":"https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4f","label":"security-advisories@github.com"}],"tags":["nvd","cve.org"],"epss":0.00603,"epssPercentile":0.4957,"cvssSource":"cna","ingestedAt":"2026-11-23T22:38:00.010Z","slug":"CVE-2026-77346","body":"## Overview\n\nPozeiden 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":35,"depthScoreParts":{"impact":34.7,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}