Skip to content

chore(security): review dependency vulnerabilities - #226

Open
dex-the-ai wants to merge 1 commit into
mainfrom
chore/security-review-20261117-t_5ccc3afa
Open

dex-the-ai wants to merge 1 commit into
mainfrom
chore/security-review-20261117-t_5ccc3afa

Conversation

@dex-the-ai

Copy link
Copy Markdown
Contributor

Summary

npm audit found 21 known advisories in this app's dependencies. This PR fixes 18 of them, including 2 critical Next.js remote code execution issues. The change is lockfile-only: I ran npm audit fix (without --force), so package.json is unchanged and no major versions moved.

  • next and eslint-config-next 16.3.7 -> 16.4.6 (same major)
  • follow-redirects 1.16.0 -> 1.16.3 (used by axios)
  • qs 6.16.0 -> 6.17.1
  • source-map-js 1.2.1 -> 1.2.2
  • zod 4.4.1 -> 4.6.7 (dev-only, used by eslint-plugin-react-hooks)

Before: 21 advisories (npm reports 57 affected packages: 1 critical, 46 high, 10 moderate). After: 3 advisories (52 affected packages: 0 critical, 48 high, 4 moderate). The "affected package" count stays high because npm also lists every jest and eslint package that depends on the 3 remaining items below.

Advisories fixed

Advisory Package Direct/transitive Current Fixed in this PR Severity What it means
CVE-2026-111756 follow-redirects transitive 1.16.0 1.16.3 high follow-redirects array-form headers bypass cross-origin credential stripping
CVE-2026-111755 follow-redirects transitive 1.16.0 1.16.3 high follow-redirects sensitiveHeaders regex escaping can expose credential headers
CVE-2026-116689 follow-redirects transitive 1.16.0 1.16.3 high follow-redirects: Cross-realm sensitiveHeaders arrays are discarded and custom credentials can follow redirects
GHSA-2464-fhr4-w9xw next direct 16.3.7 16.4.6 critical Next.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used
GHSA-673q-mjm6-r5xr next direct 16.3.7 16.4.6 critical Next.js: Unauthenticated Remote Code Execution in use cache functions returning typed arrays
CVE-2026-94483 next direct 16.3.7 16.4.6 high Next.js has Server-Side Request Forgery in Image Optimization
CVE-2026-94482 next direct 16.3.7 16.4.6 high Next.js: Denial of Service in App Router using Server Actions
CVE-2026-94544 next direct 16.3.7 16.4.6 moderate Next.js: Pending use cache fill can leak Draft Mode content into regular responses and persisted pages
CVE-2026-94543 next direct 16.3.7 16.4.6 moderate Next.js has cache poisoning of SSG and ISR pages in self-hosted applications
CVE-2026-94485 next direct 16.3.7 16.4.6 moderate Next.js has information disclosure in App Router metadata image routes via dynamicParams bypass
CVE-2026-94484 next direct 16.3.7 16.4.6 moderate Next.js has cache poisoning in SSG/ISR rendering that leads to cross-user content substitution and persistent denial of service
CVE-2026-103004 next direct 16.3.7 16.4.6 moderate next.js cache leak across root param values in nested 'use cache' functions
CVE-2026-119790 next direct 16.3.7 16.4.6 moderate Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()
CVE-2026-119351 next direct 16.3.7 16.4.6 moderate Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata
CVE-2026-94486 next direct 16.3.7 16.4.6 low Next.js has information disclosure in development server's Model Context Protocol endpoint
CVE-2026-110816 qs direct 6.16.0 6.17.1 moderate qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
CVE-2026-93749 source-map-js transitive 1.2.1 1.2.2 high source-map-js allows event-loop denial of service through indexed source-map section offsets
CVE-2023-54404 zod transitive 4.4.1 4.6.7 high Zod can exhaust memory while validating oversized constrained collections

Remaining advisories not fixed

Advisory Package Severity What it means
CVE-2026-118773 glob moderate Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
CVE-2026-118764 minimatch moderate minimatch has potential denial of service via globparts amplification
CVE-2026-112366 picomatch high picomatch vulnerable to ReDoS through single-branch repeated extglobs

Why they stay:

  • picomatch: affects every version up to 4.0.7, and 4.0.7 is the newest release. There is no fixed version yet.
  • glob (10.5.0 / 13.0.7) and minimatch (3.x / 9.x / 10.2.6): the fixes are only in new majors (glob 14.0.2, minimatch 11.0.1). They come in through jest and eslint, which do not support those majors yet. npm's only suggestion is --force, which would downgrade jest to 26 and eslint-config-next to 14.
  • All three are dev/test-only (jest, eslint, Tailwind tooling). None of them is part of the production server bundle.

Validation

Node 26.7.0, npm 12.0.2. Tests ran against a Capella cluster with a user_profile bucket. The CI workflow does the same steps against a local Couchbase container.

Command Result
npm ci OK
npm run check (prettier + eslint --max-warnings=0) pass
npx jest (all 4 API route suites: create/read/update/delete) 4 suites, 6 tests passed
npx next build (Next.js 16.4.6) compiled OK, routes / and /api/user
next start + GET / and GET /api/user?limit=3 200, profiles returned from Capella
npm audit before / after 21 advisories / 3 advisories (0 critical)

Evidence

The production build (next start) on this branch, connected to Capella and loading the user directory:

User Directory UI

Walkthrough video

Overlapping Dependabot PRs

This PR covers these, so they can be closed once it merges:

Risk / rollback

Low risk. Only package-lock.json changes, and every update is a minor or patch release inside the ranges package.json already allows. To roll back, revert this commit.

Reviewers / notifications

Reviewer requested from tutorials.json owners (the repo has no CODEOWNERS file): @ejscribner. A Slack notification was sent to the dependency PR channel.

Hermes Kanban: board couchbase-examples, task t_5ccc3afa

🤖 Generated with Claude Code

Run npm audit fix (no --force). Lockfile-only change:
next/eslint-config-next 16.3.7 -> 16.4.6, follow-redirects 1.16.0 -> 1.16.3,
qs 6.16.0 -> 6.17.1, source-map-js 1.2.1 -> 1.2.2, zod 4.4.1 -> 4.6.7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
couchbase-nextjs-quickstart Ready Ready Preview Nov 18, 2026 1:25pm UTC
nextjs-quickstart Ready Ready Preview Nov 18, 2026 1:25pm UTC

This branch was successfully deployed

2 active deployments
Preview – nextjs-quickstart — 44e99e9f Deployed Nov 18, 2026 by vercel[bot]
Preview – couchbase-nextjs-quickstart — 44e99e9f Deployed Nov 18, 2026 by vercel[bot]
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