Skip to content

chore: bump pozeiden v0.2.0 → v0.4.0 (picks up two GHSA fixes) - #86

Merged
sc2ben merged 1 commit into
mainfrom
chore/bump-pozeiden-0.4.0
Aug 7, 2026
Merged

chore: bump pozeiden v0.2.0 → v0.4.0 (picks up two GHSA fixes)#86
sc2ben merged 1 commit into
mainfrom
chore/bump-pozeiden-0.4.0

Conversation

@tsunaminoai

Copy link
Copy Markdown
Contributor

Bumps the lazy pozeiden dependency from v0.2.0 → v0.4.0.

Why

zigmark's CLI and WASM mermaid paths were still on 0.2.0, which predates both of pozeiden's 0.3.0 security fixes:

  • GHSA-p2c5-qmq5-3r4f — SVG output injection / stored XSS through style values, click … href, and %%{init}%% theme variables
  • GHSA-rg4m-w3p2-gf3p — out-of-bounds writes on large/deeply-nested diagrams (memory corruption in the safety-off WASM build)

0.4.0 additionally brings input-resource hardening (per-call limits, nesting guards), the O(V+E) flowchart layout rewrite (caps raised 10×), and accessibility metadata.

Behaviour change (per pozeiden's output-stability policy)

Mermaid SVG bytes change on this minor bump:

  • default font stack now ends in Liberation Sans, DejaVu Sans, sans-serif (headless consumers resolve real fonts)
  • accTitle:/accDescr: directives are no longer parsed as diagram content — they become SVG <title>/<desc> + role="img" accessibility metadata

CHANGELOG entry included.

Verified

  • zig build test — full suite green
  • zig build + CLI smoke: a ```mermaid fence renders through pozeiden 0.4.0 (new font stack visible in output)
  • zig build wasm — links clean
  • build.zig.zon2json-lock regenerated via update-zon (also picks up pozeiden's corrected transitive mvzr ref pin, v0.3.10 → v0.3.9 label for the same commit)

Picks up pozeiden's two 0.3.0 security fixes that the CLI/WASM mermaid
paths were missing (GHSA-p2c5-qmq5-3r4f SVG/XSS injection,
GHSA-rg4m-w3p2-gf3p out-of-bounds writes) plus the 0.4.0 hardening,
accessibility metadata, and layout rewrite. Behaviour change per
pozeiden's stability policy: emitted mermaid SVG bytes change (wider
default font stack; accTitle/accDescr become <title>/<desc>).

Verified: zig build test, zig build (CLI renders a mermaid pie through
pozeiden 0.4.0), zig build wasm; zon2json-lock regenerated (also picks
up pozeiden's corrected transitive mvzr ref pin).
@sc2ben
sc2ben merged commit f6f1afb into main Aug 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants