Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

fix(security): upgrade Next.js 16.2.0 → 16.2.10, patch ws CVEs, fix SQL search_path - #91

Draft
caimanoliveira wants to merge 4 commits into
mainfrom
claude/kind-keller-ssqekq
Draft

fix(security): upgrade Next.js 16.2.0 → 16.2.10, patch ws CVEs, fix SQL search_path#91
caimanoliveira wants to merge 4 commits into
mainfrom
claude/kind-keller-ssqekq

Conversation

@caimanoliveira

Copy link
Copy Markdown
Owner

Summary

  • Upgrade next from 16.2.016.2.10 to fix 14 HIGH/MODERATE CVEs (DoS via Server Components, Middleware/Proxy bypasses, XSS, cache poisoning, SSRF — GHSA-q4gf-8mx6-v5v3 and 13 others)
  • Fix ws HIGH severity memory-disclosure and DoS vulnerabilities (GHSA-58qx-3vcg-4xpx, GHSA-96hv-2xvq-fx4p) via npm audit fix
  • Replace broken "lint": "next lint" script — next lint was removed in Next.js 16; now runs tsc --noEmit
  • Add Supabase migration 20260721000000_security_fixes.sql to fix mutable search_path on update_etapa_respostas_updated_at trigger function (Supabase lint 0011)

Changes

  • package.json — next version bump, lint script fix
  • package-lock.json — updated lockfile
  • mentoria-crm/supabase/migrations/20260721000000_security_fixes.sql — new migration with SET search_path = public, pg_temp on the trigger function

Build status

next build passes cleanly on 16.2.10 (22/22 pages generated, TypeScript clean).


Generated by Claude Code

…h_path

- Upgrade next from 16.2.0 → 16.2.10 to resolve 14 HIGH/MODERATE CVEs
  (DoS via Server Components, Middleware bypasses, XSS, cache poisoning,
  SSRF via WebSocket upgrades — GHSA-q4gf-8mx6-v5v3 and others)
- Fix ws HIGH severity memory disclosure/DoS (GHSA-58qx-3vcg-4xpx)
  via npm audit fix
- Replace broken "next lint" script (removed in Next.js 16) with tsc --noEmit
- Add migration to fix mutable search_path on update_etapa_respostas_updated_at
  trigger function (Supabase lint 0011)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VNvA25wnFPn5ufZ5rXHsT
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mentoria-crm Error Error Jul 21, 2026 7:55am
splinter Ready Ready Preview, Comment Jul 21, 2026 7:55am
splinter-yhcm Ready Ready Preview, Comment Jul 21, 2026 7:55am

Python 3.9 is no longer available on GitHub Actions runners (3.10+ only).
Also update actions/checkout@v2→@v4 and actions/setup-python@v1→@v5
to avoid Node 20 deprecation warnings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VNvA25wnFPn5ufZ5rXHsT
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014VNvA25wnFPn5ufZ5rXHsT
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants