chore(deps): clear high-severity CVEs from production audit - #12
Conversation
Brings 'npm run security:audit' (npm audit --audit-level=high --omit=dev) to zero high-severity findings. All were pre-existing, newly-disclosed CVEs: - next 16.2.6 -> 16.2.12: patches middleware/proxy bypass, Server Action DoS and SSRF, cache confusion, and internal endpoint disclosure advisories. - override postcss ^8.5.25 (path traversal) and sharp ^0.35.3 (libvips CVEs), both bundled under next. - prisma / @prisma/client / @prisma/adapter-pg 7.8.0 -> 7.9.1: newer @prisma/dev drops hono/@hono/node-server and bumps valibot to a patched build, clearing the remaining dev-tooling advisories. Type-check, production build, and all 293 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| "@hono/node-server": "^1.19.13", | ||
| "postcss": "^8.5.15", | ||
| "postcss": "^8.5.25", | ||
| "sharp": "^0.35.3", |
There was a problem hiding this comment.
WARNING: New sharp override (^0.35.3) pinned here. Confirmed this is only pulled in transitively as Next.js's optional dependency for its built-in image-optimization pipeline (next/image), and is not imported anywhere in src/. Per the "No media, ever" principle, worth double-checking that no route uses next/image (or any future image-optimization API) against survivor-submitted URLs/content — sharp must never touch NCII media server-side. No action needed for this PR itself, just flagging for future vigilance.
Review summaryThis PR ( Verification performed:
No CRITICAL findings. No safety-invariant, security, business-logic, or data-integrity issues identified — the diff has no code paths to introduce them. |
Why
The
Dependency auditCI check went red on recently-disclosed CVEs in pre-existing dependencies (unrelated to any feature work). This bringsnpm run security:audit(npm audit --audit-level=high --omit=dev) back to zero high-severity findings so PRs can merge again.Changes
eslint-config-nextbumped to match.postcss^8.5.25 (path traversal) andsharp^0.35.3 (libvips CVEs) — both bundled under next; overrides force the patched builds.@prisma/devdrops hono/@hono/node-server and vendors a patched valibot, clearing the remaining (dev-only) tooling advisories.Verification
npm run security:audit: found 0 vulnerabilitiesMerge this first; then PR #11 (AI image checker) can go green on the same audit.
🤖 Generated with Claude Code