# CVE-2026-77346: Pozeiden: SVG output injection (stored XSS) via click href, style/classDef colors, %%{init}%% theme variables, and quadrant labels

Status: published. Published: 2026-11-20. Updated: 2026-11-24.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- sc2in / pozeiden: < 0.3.0 (affected). Source: CNA: GitHub_M
-  / pozeiden (pozeiden): <= 0.2.0 (affected, GitHub advisory range). Source: GitHub GHSA-p2c5-qmq5-3r4f

## Severity and prioritization

- CVSS 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; source: CNA: GitHub_M

- CVSS 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; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.60% as of 2026-11-23; percentile 49.79%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-79

## 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-3r4f (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/sc2in/pozeiden/commit/b11a4cf403ec818e47d8246ed7a034f721cc6ace (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/sc2in/pozeiden/releases/tag/v0.3.0 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/sc2in/pozeiden/commit/b11a4cf403ec818e47d8246ed7a034f721cc6ace (security-advisories@github.com)

- https://github.com/sc2in/pozeiden/releases/tag/v0.3.0 (security-advisories@github.com)

- https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4f (security-advisories@github.com)

- https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4f (GitHub Security Advisories; advisory)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-77346; retrieved 2026-11-24; source updated 2026-11-24

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-77346; retrieved 2026-11-21; source updated 2026-11-20

- GitHub Security Advisories: https://github.com/sc2in/pozeiden/security/advisories/GHSA-p2c5-qmq5-3r4f; retrieved 2026-11-24; source updated 2026-08-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-77346; retrieved 2026-11-24; source updated Not reported

Revision: ba98a1773e36853008f93376c481708dad055838388d9a976b79a66f38d1dfbc

Canonical: https://y2.dev/cve/CVE-2026-77346

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.