Skip to content

security: patch dependency vulnerabilities (Next.js, next-intl, postcss, picomatch)#22

Merged
RCushmaniii merged 2 commits into
mainfrom
fix/dependency-vulnerabilities
Jul 13, 2026
Merged

security: patch dependency vulnerabilities (Next.js, next-intl, postcss, picomatch)#22
RCushmaniii merged 2 commits into
mainfrom
fix/dependency-vulnerabilities

Conversation

@RCushmaniii

Copy link
Copy Markdown
Owner

Summary

  • GitHub Dependabot flagged 46 open vulnerabilities on main (21 high, 19 moderate, 6 low); local npm audit matched a subset of 10 before this fix.
  • Bumped next 16.1.4 → 16.2.10 (fixes the bulk of the high-severity Next.js CVEs: SSRF via WebSocket upgrades, middleware/proxy bypasses, cache poisoning, DoS, XSS). eslint-config-next bumped to match.
  • Ran npm audit fix for next-intl (open redirect + prototype pollution), picomatch (ReDoS/method injection), ajv, brace-expansion, @babel/core.
  • Added a postcss override (^8.5.10) because Next.js 16.2.10 still bundles its own vulnerable nested postcss@8.4.31 internally — the override forces the patched version across the whole tree.
  • flatted and minimatch (both flagged by Dependabot as transitive high-severity issues) were swept to patched versions automatically as part of the lockfile refresh.

Local npm audit now reports 0 vulnerabilities.

Test plan

  • npm run build — succeeds, all 23 static routes generate correctly
  • npm run lint — clean
  • Netlify preview deploy renders correctly (auto-triggered on this PR)
  • Spot-check EN/ES pages after preview deploys

🤖 Generated with Claude Code

…ss, picomatch)

npm audit found 10 vulnerabilities (4 high, 5 moderate, 1 low): multiple
Next.js CVEs (SSRF via WebSocket upgrades, middleware/proxy bypasses, cache
poisoning, XSS, DoS), a next-intl open redirect + prototype pollution issue,
and transitive picomatch/postcss/ajv/brace-expansion advisories.

- next 16.1.4 -> 16.2.10, eslint-config-next matched to same version
- npm audit fix for next-intl, picomatch, ajv, brace-expansion, @babel/core
- added postcss override (^8.5.10) to patch the copy Next.js bundles
  internally, which still shipped a vulnerable postcss even after the
  16.2.10 bump

npm audit now reports 0 vulnerabilities. Verified npm run build and
npm run lint both pass clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 13, 2026

Copy link
Copy Markdown

Deploy Preview for ai-stock-alert-website ready!

Name Link
🔨 Latest commit fabdf83
🔍 Latest deploy log https://app.netlify.com/projects/ai-stock-alert-website/deploys/6a5521f36e373e00083be695
😎 Deploy Preview https://deploy-preview-22--ai-stock-alert-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@RCushmaniii
RCushmaniii merged commit dee34c9 into main Jul 13, 2026
5 checks passed
@RCushmaniii
RCushmaniii deleted the fix/dependency-vulnerabilities branch July 13, 2026 17:37
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