fix: patch critical vulnerability in React Server Components#380
Conversation
This commit patches a critical vulnerability in React Server Components (CVE-2025-55182) and Next.js (CVE-2025-66478) by updating Next.js to version 15.3.6 and React to version 19.1.2.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
This commit patches a critical vulnerability in React Server Components (CVE-2025-55182) and Next.js (CVE-2025-66478) by updating Next.js to version 15.3.6 and React to version 19.1.2.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
There was a problem hiding this comment.
The dependency updates correctly target the vulnerable packages and move them to patched versions. However, switching from caret ranges to fully pinned versions for next, react, and react-dom may hinder automatic adoption of future patch releases, impacting long-term maintainability and security posture. Using caret ranges starting from the patched versions would better balance security guarantees with ongoing updates. No other issues are evident in the provided diff.
Summary of changes
Summary of Changes
- Updated the
nextdependency from^15.3.3to the exact version15.3.6. - Updated
reactfrom^19.1.0to the exact version19.1.2. - Updated
react-domfrom^19.1.0to the exact version19.1.2. - Switched these three core dependencies from caret ranges to pinned versions to pick up security fixes for React Server Components and Next.js vulnerabilities.
| "next": "15.3.6", | ||
| "next-themes": "^0.3.0", | ||
| "open-codex": "^0.1.30", | ||
| "pg": "^8.16.2", | ||
| "radix-ui": "^1.3.4", | ||
| "react": "^19.1.0", | ||
| "react-dom": "^19.1.0", | ||
| "react": "19.1.2", | ||
| "react-dom": "19.1.2", |
There was a problem hiding this comment.
Pinning next, react, and react-dom to exact versions (15.3.6 / 19.1.2) ensures the security patch is applied, but it also removes any ability to receive compatible patch updates automatically. That can make it easier to drift out of date and requires more manual maintenance, especially for security patches released after these versions.
Given this PR’s goal (patching a specific CVE), it would be safer long-term to keep the caret (^) range but set the minimum version to the patched one (e.g., ^15.3.6, ^19.1.2). That guarantees this fix while still allowing future non-breaking patch updates within the same major version.
Suggestion
Consider using caret ranges with the patched versions as the minimum, e.g.:
"next": "^15.3.6",
"react": "^19.1.2",
"react-dom": "^19.1.2"This keeps you on secure, fixed minimum versions while still allowing safe patch-level updates in the same major line. Reply with "@CharlieHelps yes please" if you'd like me to add a commit with this suggestion.
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
This commit patches a critical vulnerability in React Server Components (CVE-2025-55182) and Next.js (CVE-2025-66478) by updating Next.js to version 15.3.6 and React to version 19.1.2.
PR created automatically by Jules for task 5407609223263883225 started by @ngoiyaeric
PR Type
Bug fix
Description
Update Next.js from 15.3.3 to 15.3.6 to patch CVE-2025-66478
Update React from 19.1.0 to 19.1.2 to patch CVE-2025-55182
Update React DOM from 19.1.0 to 19.1.2 for consistency
Fix critical vulnerability in React Server Components
Diagram Walkthrough
File Walkthrough
package.json
Update Next.js and React to patch vulnerabilitiespackage.json
nextdependency from ^15.3.3 to 15.3.6reactdependency from ^19.1.0 to 19.1.2react-domdependency from ^19.1.0 to 19.1.2