Skip to content

chore(deps): patch undici advisories, floor cli and rules zod at ^4.6.6 - #1094

Merged
nc9 merged 2 commits into
mainfrom
chore/deps-undici-fast-uri
Oct 24, 2026
Merged

nc9 merged 2 commits into
mainfrom
chore/deps-undici-fast-uri

Conversation

@nc9

@nc9 nc9 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

This fixes the failing Dependency audit step. Two undici advisories were published on 2026-10-23 and now fail on main. The release gate runs the same audit, so a release cannot be cut until this is fixed. The PR also moves the zod 4 copy that the CLI and rules use past GHSA-mrhx-c7xc-m3w5.

undici, three majors

Copy Path Range asked From → to Advisories
7.x docs > wrangler > miniflare 7.29.1 (exact) 7.29.1 → 7.30.1 GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472
6.x @ai-sdk/provider-utils ^6.28.0 6.29.0 → 6.29.1 GHSA-4qv8-2p9j-2685
8.x docs > tangly > astro > unifont ^8.0.0 8.11.2 → 8.12.3 GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472

Root overrides are flat, and three majors are live at once, so one undici entry can't hold them. Each bun.lock entry instead moves to the fixed release, with its registry sha512 integrity.

Every miniflare release still pins undici 7.29.1 exactly, so the 7.x entry goes against that pin. It is a minor bump of a dev-only tool (wrangler dev for the docs). A future wrangler bump may re-resolve it back to 7.29.1, and the audit would flag that. None of the undici copies is in the compiled squirrel binary.

zod 4.4.3 → 4.6.7 (cli, rules)

apps/cli and packages/rules asked for ^4.4.3, which resolved 4.4.3. That is inside the <4.6.6 range of GHSA-mrhx-c7xc-m3w5. Both now ask for ^4.6.6, so the shared zod 4 copy moves to 4.6.7. The MCP packages, tangly/astro and ultracite use that copy too. zod is in the compiled binary, so THIRD_PARTY_NOTICES.md and npm/THIRD_PARTY_NOTICES.md are regenerated (only the zod version string changes).

The advisory stays in the ignore list, because two affected copies remain:

The allowlist entry is updated to match. There are no other ignore changes.

No CHANGELOG entry. 4.5 and 4.6 do tighten some edge cases: string length now counts code points, a strict object reports every issue, and error maps run lazily. None of that changes what the CLI accepts or prints for its own config and MCP inputs, and the tests below pass unchanged.

fast-uri

The fast-uri override floor moves from ^3.1.8 to ^3.1.9, for GHSA-w74x-v6f9-j3xg and GHSA-wjr9-j795-jxcr. No fast-uri copy resolves in this tree today, so this only keeps a future one off the affected range.

bun.lock

+7/-7 lines, nothing else:

  • the fast-uri override line
  • the three undici entries
  • the two workspace zod ranges
  • the root zod entry

A plain bun install also rewrites the stale CLI workspace version (0.0.129 to 0.0.132). That line is left as it is on main. bun install --frozen-lockfile accepts the lock.

Verification (local)

  • bun run audit:dependencies:
    • before: exit 1, 5 moderate findings (undici 7.29.1, 6.29.0, 8.11.2)
    • after: exit 0, "No vulnerabilities found (checked 1218 packages, 6 ignored)"
    • no ignores added
  • bun run notices:generate, then notices:check: up to date (67 packages)
  • Typecheck (tsgo): packages/rules and apps/cli pass.
  • Tests:
    • cli, 10 files, 157 pass: config, audit-options, the mcp tests (protocol, server, docs-sync, report-tools, entity-tools, feedback-tools), and the commands tests (audit-rule-options-wiring, feedback)
    • rules, 2 files, 82 pass: rule-options-check, integrity
  • bun run docs:build: exit 0, 501 pages. It ran with unifont on undici 8.12.3 and astro on zod 4.6.7.
  • wrangler 4.144.0 unstable_startWorker, run under node with miniflare on undici 7.30.1: a worker serves 200.
  • Secret scan hook (detect-secrets 1.5.0, .secrets.baseline): exit 0

Agent skill: no change. Docs: none.

…6w45-q472)

Three undici majors are live, so a flat override cannot move them; each lock
entry is patched to the fixed release with its registry integrity hash:

- undici 7.29.1 -> 7.30.1 (docs > wrangler > miniflare, exact pin 7.29.1)
- undici 6.29.0 -> 6.29.1 (@ai-sdk/provider-utils, ^6.28.0)
- undici 8.11.2 -> 8.12.3 (docs > tangly > astro > unifont, ^8.0.0)

Also raises the fast-uri override floor to ^3.1.9 (GHSA-w74x-v6f9-j3xg,
GHSA-wjr9-j795-jxcr); no fast-uri copy resolves in this tree today.

None of these is in the compiled squirrel binary (notices unchanged).

Signed-off-by: Nik Cubrilovic <[email protected]>
@claude

claude Bot commented Oct 24, 2026

Copy link
Copy Markdown

Reviewed the diff. It is a dependency bump only: fast-uri ^3.1.8 → ^3.1.9 in the package.json overrides, plus the matching bun.lock updates (undici 7.29.1 → 7.30.1, 6.29.0 → 6.29.1, 8.11.2 → 8.12.3).

No findings. The lockfile changes match the override change, and no source code was touched. I did not run CI or the tests. Check that the gh pr checks results are green before merging.

🤖 Generated with Claude Code

apps/cli and packages/rules asked for zod ^4.4.3, which resolved 4.4.3, inside
the advisory's <4.6.6 range. Both now ask for ^4.6.6, so the shared zod 4 copy
(also used by the MCP packages, tangly/astro and ultracite) moves to 4.6.7. The
third-party notices are regenerated for the compiled binary.

config and crawler stay on zod 3 (#1085), and @vercel/cli-config (docs only)
pins 4.1.11, so the allowlist entry stays, updated to match.

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9 nc9 changed the title chore(deps): patch undici advisories (GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472) chore(deps): patch undici advisories, floor cli and rules zod at ^4.6.6 Oct 24, 2026
@claude

claude Bot commented Oct 24, 2026

Copy link
Copy Markdown

Reviewed the diff. The changes match the description: the lockfile edits are limited to the undici entries, the zod 4 entry, the two workspace zod ranges and the fast-uri override. package.json, the THIRD_PARTY_NOTICES.md copies and the allowlist text agree with the lock. I didn't re-run the audit, tests or build; I'm relying on the PR's reported results.

No blocking issues found.

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