Skip to content

fix(deps): patch security vulnerabilities in hono, dependency-cruiser, and transitive deps#1104

Merged
jeanduplessis merged 7 commits into
mainfrom
chore/deps-and-worktree-config
Mar 16, 2026
Merged

fix(deps): patch security vulnerabilities in hono, dependency-cruiser, and transitive deps#1104
jeanduplessis merged 7 commits into
mainfrom
chore/deps-and-worktree-config

Conversation

@jeanduplessis
Copy link
Copy Markdown
Contributor

Summary

Patches 9 security vulnerabilities identified by pnpm audit by bumping direct dependencies and updating transitive deps in the lockfile:

  • hono catalog ^4.12.1^4.12.7 — fixes arbitrary file access via serveStatic, cookie attribute injection, SSE control field injection, and prototype pollution via parseBody
  • dependency-cruiser ^17.3.1^17.3.8 — drops the vulnerable ajv transitive dependency entirely
  • @hono/node-server 1.19.9 → 1.19.11 (lockfile) — fixes authorization bypass via encoded slashes
  • express-rate-limit 8.2.1 → 8.3.1 (lockfile) — fixes IPv4-mapped IPv6 rate limit bypass
  • flatted 3.3.3 → 3.4.1 (lockfile) — fixes unbounded recursion DoS in parse()
  • undici 6.23.0 → 6.24.1 for @qdrant/js-client-rest (lockfile) — fixes WebSocket DoS, HTTP smuggling, and CRLF injection

Reduces pnpm audit from 27 → 18 vulnerabilities. The remaining 18 are blocked by upstream pinning (discord.js, miniflare, monaco-editor, storybook/elliptic).

Verification

  • pnpm install — passes
  • pnpm audit — confirms reduction from 27 to 18 vulnerabilities

Visual Changes

N/A

Reviewer Notes

  • All direct dep bumps are semver-patch within the same minor version.
  • undici@6.24.1 was added to minimumReleaseAgeExclude because it was published 1 day ago (within the 4-day minimumReleaseAge window). This exclusion can be removed after March 18.
  • The remaining 18 vulnerabilities cannot be fixed without upstream releases from discord.js (pins undici 6.21.3), @cloudflare/vitest-pool-workers/miniflare (pins undici 7.18.2, dev-only), monaco-editor (pins dompurify 3.2.7), and storybook/elliptic (no patched version exists, dev-only).

…, and transitive deps

Bump hono catalog ^4.12.1 -> ^4.12.7 (fixes serveStatic file access,
cookie injection, SSE injection, prototype pollution).

Bump dependency-cruiser ^17.3.1 -> ^17.3.8 (drops vulnerable ajv dep).

Update transitive deps via lockfile: @hono/node-server 1.19.9 -> 1.19.11,
express-rate-limit 8.2.1 -> 8.3.1, flatted 3.3.3 -> 3.4.1,
undici 6.23.0 -> 6.24.1 (qdrant).

Reduces pnpm audit from 27 to 18 vulnerabilities.
Comment thread pnpm-workspace.yaml
Comment thread pnpm-workspace.yaml
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Mar 15, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (9 files)
  • .gitignore
  • cloud-agent-next/src/server.ts
  • cloudflare-ai-attribution/src/ai-attribution.worker.ts
  • cloudflare-deploy-infra/builder/src/index.ts
  • cloudflare-gastown/src/middleware/analytics.middleware.ts
  • cloudflare-webhook-agent-ingest/src/index.ts
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Reviewed by gpt-5.4-20260305 · 443,859 tokens

Add null guards for c.req.param() which now returns string | undefined
in hono >=4.12.7 (cloud-agent-next, deploy-builder).

Cast workers-tagged-logger middleware to MiddlewareHandler to bridge
stale .d.ts compiled against older hono (ai-attribution, webhook-agent).
Comment thread package.json Outdated
Comment thread package.json Outdated
@jeanduplessis jeanduplessis requested a review from eshurakov March 16, 2026 09:19
@jeanduplessis jeanduplessis merged commit 0b6da65 into main Mar 16, 2026
18 checks passed
@jeanduplessis jeanduplessis deleted the chore/deps-and-worktree-config branch March 16, 2026 09:22
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