Skip to content

Comments

Update React to 19.2.1 to address CVE-2025-55182#1

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-react-nextjs-dependencies
Draft

Update React to 19.2.1 to address CVE-2025-55182#1
Copilot wants to merge 2 commits intomainfrom
copilot/update-react-nextjs-dependencies

Conversation

Copy link

Copilot AI commented Dec 6, 2025

Firebase flagged CVE-2025-55182, a critical RCE vulnerability (CVSS 10.0) in React Server Components. While this project uses Vite (not Next.js) and React 18.3.1 wasn't directly affected, upgrading to the patched React 19.2.1 addresses the security recommendation.

Changes

  • Dependencies: Updated react, react-dom to 19.2.1 and corresponding @types/* to 19.x
  • Type declarations: Fixed model-viewer.d.ts for React 19's JSX namespace changes
// React 18 (before)
declare namespace JSX {
  interface IntrinsicElements { ... }
}

// React 19 (after)
declare module 'react' {
  namespace JSX {
    interface IntrinsicElements { ... }
  }
}

Verification

  • Build passes
  • All tests pass
  • CodeQL: no alerts
Original prompt

what's this warning on firebase? Security Check Recommended (CVE-2025-55182): Please review your application's dependencies. If you are running React or Next.js applications, immediately update to the latest stable versions (React 19.2.1 or the relevant version of Next.js), and redeploy.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: zzfadi <32167833+zzfadi@users.noreply.github.com>
Copilot AI changed the title [WIP] Update React and Next.js to latest stable versions Update React to 19.2.1 to address CVE-2025-55182 Dec 6, 2025
Copilot AI requested a review from zzfadi December 6, 2025 02:47
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.

2 participants