Security: Patch 16 npm vulnerabilities (Next.js 15 upgrade & overrides)#1537
Open
ArshVermaGit wants to merge 1 commit into
Open
Security: Patch 16 npm vulnerabilities (Next.js 15 upgrade & overrides)#1537ArshVermaGit wants to merge 1 commit into
ArshVermaGit wants to merge 1 commit into
Conversation
|
@ArshVermaGit is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
ArshVermaGit
commented
May 29, 2026
Author
ArshVermaGit
left a comment
There was a problem hiding this comment.
Hi @Priyanshu-byte-coder ! Issue #1536 has been resolved. Please review the PR and merge it under GSSoC. Thanks!
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.
Description
This PR addresses the 16 security vulnerabilities (9 High, 7 Moderate) flagged by
npm audit.Crucially, we did not run
npm audit fix --force, as doing so would have destructively downgradednext-authto v3, downgradednext-pwa, and upgraded Next.js to an unstable v16 Canary branch. Instead, this PR takes a surgical approach to isolate and patch the vulnerable dependencies while preserving application stability.Resolved Issue
Resolves #1536
Fixes:
uuid(buffer bounds fix),serialize-javascript(RCE fix),glob(command injection fix), andesbuildusing theoverridesfield inpackage.json.postcssto^8.5.10to patch a known XSS vulnerability.nextandeslint-config-nextto15.1.x(Stable) to resolve multiple critical vulnerabilities natively within Next.js (including DoS via Image Optimizer, SSRF in middleware, and cache poisoning).vitesttolatestto ensure compatibility and patch a path traversal vulnerability invite.How to Verify
npm install.npm auditand verify that the vulnerability count is at0(or severely reduced for non-fixable deep dependencies).npm run testandnpm run test:e2eto ensure the Next.js 15 major version bump did not introduce regressions in routing or authentication.npm run buildto ensure the production build still compiles successfully.