Out-of-bounds read and write in Pozeiden diagram renderers
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Pozeiden, a MermaidJS renderer written in Zig, is affected before 0.3.0. Several renderers use fixed-size arrays but size their loops from the diagram's item count or nesting depth, so a valid diagram with at least 193 grid items or a deeply nested state diagram reads or writes past the array (CWE-787). A remote attacker without privileges and without user interaction can crash applications that render untrusted diagrams, and ReleaseSmall WASM builds perform out-of-bounds stack reads or writes.
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, src/renderers/c4.zig, src/renderers/class.zig, src/renderers/er.zig, and src/renderers/requirement.zig use fixed row-layout arrays while deriving subsequent loop bounds from an untrusted diagram's actual item count, and src/renderers/state.zig indexes a fixed depth array using user-controlled nesting depth. A valid diagram with at least 193 grid items can make the row count exceed the 64-row storage, while a deeply nested state diagram can exceed the col_count depth storage through the public pozeiden.render() path. Safe CLI and ReleaseSafe builds abort the rendering process, enabling reliable denial of service in applications that render untrusted diagrams. ReleaseSmall WASM builds with safety checks disabled instead perform out-of-bounds stack reads or writes, creating a memory-safety violation. This issue is fixed in version 0.3.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade sc2in Pozeiden to version 0.3.0, which contains the fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA pozeiden (sc2in) Fixed in 0.3.0
Timeline
- 2026-11-20 Threatist record created from CVE-2026-77347
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-25 EPSS moved to the below the 50th percentile
References
More sc2in vulnerabilities
- TI-2026-95979 Stored XSS in Pozeiden SVG output via Mermaid input values CVSS 4.0MEDIUM 6.3
- 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