fix: resolve 15 Snyk vulnerabilities (1 Critical, 8 High, 6 Medium) - #184
Merged
Conversation
Upgrades next 15.5.9 -> 16.2.6 (fixes 6 Next CVEs incl. DoS / HTTP request smuggling) and @azure/storage-blob 12.29.0 -> 12.29.1 (pulls fast-xml-parser >=5.7.3, fixing 6 CVEs incl. XEE and uncaught exceptions). Adds npm overrides to force-fix transitive deps inside next-auth: preact >=10.28.2 (Critical type-confusion), uuid >=11.1.1, postcss >=8.5.10. tsconfig.json updates are Next 16 codemods. Remaining: leaflet 1.9.4 XSS (no upstream fix available). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Next 16 removed the 'next lint' wrapper, so npm run lint failed in CI with 'Invalid project directory: lint'. Switches the script to 'eslint .' and updates eslint.config.mjs to consume the flat configs that eslint-config-next@16 now exports natively (no FlatCompat). Downgrades three new react-hooks rules (set-state-in-effect, immutability, preserve-manual-memoization) and 'no-require-imports' for scripts/*.js to warnings — these are advisory rules introduced by upgraded plugins, flagging 54 pre-existing patterns that are out of scope for this security PR. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
next15.5.9 → 16.2.6 (fixes 6 Next.js CVEs incl. DoS and HTTP request smuggling) and@azure/storage-blob12.29.0 → 12.29.1 (transitively fixes 6 fast-xml-parser CVEs incl. XML Entity Expansion).overridesblock forcingpreact ≥10.28.2(Critical type-confusion CVE inside next-auth),uuid ≥11.1.1,postcss ≥8.5.10.tsconfig.jsonchanges are Next 16's automatic codemods (.next/dev/types/**/*.tsinclude,jsx: react-jsx).Vulnerabilities resolved (15 of 16)
Remaining (1)
leaflet@1.9.4— XSS (Medium, CVSS 5.3,SNYK-JS-LEAFLET-16427276). No upstream fix available —fixedInis empty in the advisory. Options: pin to a patched fork, accept the risk, or.snykignore with a review date.Test plan
npm installcleannpm run buildsucceeds (Next 16.2.6, Turbopack, 89 pages)npx snyk testshows only the unfixable leaflet CVE remainingnpm run dev) — verify no Next 16 runtime regressionsnpm test) before merging🤖 Generated with Claude Code