Skip to content

fix: bump undici and hono, unify audit gate#514

Merged
jithinraj merged 2 commits intomainfrom
fix/prod-security-audit
Mar 14, 2026
Merged

fix: bump undici and hono, unify audit gate#514
jithinraj merged 2 commits intomainfrom
fix/prod-security-audit

Conversation

@jithinraj
Copy link
Member

Summary

Fixes 3 high and 1 moderate production dependency CVEs, and unifies the audit gate into the canonical gate path to prevent audit-only CI failures after local gates pass.

Scope

  • undici 6.23.0 to 6.24.0: fixes 3 high WebSocket CVEs (GHSA-f269, GHSA-vrm6, GHSA-v9p9)
  • hono 4.12.5 to 4.12.7: fixes moderate prototype pollution (GHSA-v8w9)
  • scripts/gate.sh: add prod audit check (was only in guard.sh, skipped in fast mode)
  • scripts/release/run-gates.sh: add prod audit gate (was missing entirely)

One moderate remains: yauzl in @peac/audit requires a major-version API migration (2.x to 3.x), deferred.

Why the gate change matters

The v0.12.1 release PR passed local gates and pre-push checks but failed CI because audit-gate.mjs ran in CI as a separate job but was not part of the canonical gate.sh or run-gates.sh paths. Now all three paths (local gate, pre-push Tier 2, release gate) include the same audit check.

Validation

  • prod audit: 0 high/critical (1 moderate yauzl, deferred)
  • tests: 5737 passing / 234 files

Security: undici 6.23.0 to 6.24.0 (3 high WebSocket CVEs), hono 4.12.5
to 4.12.7 (moderate prototype pollution). One moderate remains (yauzl
in @peac/audit: requires major-version API migration, deferred).

Process: add prod audit gate to gate.sh and run-gates.sh so local full
gate, pre-push Tier 2, and release gates all include the same audit
check that CI runs. Prevents audit-only CI failures after local gates
pass.
…owlist)

Override flatted to >=3.4.1 (fixes GHSA-25h7-pfq9-p65f unbounded
recursion DoS). Add allowlist entries for 2 undici 5.29.0 HIGH CVEs
(dev-only via wrangler -> miniflare, prod uses patched 6.24.0).
@jithinraj jithinraj changed the title fix: bump undici and hono for prod CVEs, unify audit gate fix: bump undici and hono, unify audit gate Mar 14, 2026
@jithinraj jithinraj merged commit 4440aeb into main Mar 14, 2026
11 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.

1 participant