CVE-2025-67489: Vitejs plugin-rsc code injection in development server

CVE-2025-67489 · Severity: critical · CVSS 9.8 · Published 2025-12-09

@vitejs/plugin-rsc is a Vite plugin for building React Server Components (RSC) applications. Attackers with network access to the development server can execute arbitrary JavaScript code with Node.js privileges by injecting malicious code through RSC server function APIs, allowing them to read files, steal credentials and environment variables, or compromise other services on the developer's network.

Technologies: @vitejs/plugin-rsc (npm). Vendors: npm.

Quick answers

Is CVE-2025-67489 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-67489 being exploited in the wild.
How severe is CVE-2025-67489?
Critical severity, with a CVSS score of 9.8, published 9 December 2025.
Which products and versions are affected?
@vitejs/plugin-rsc (npm) SEMVER:introduced=0,fixed=0.5.6.
Is there a fix for CVE-2025-67489?
Yes. @vitejs/plugin-rsc (npm): upgrade to 0.5.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2025-67489 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2025-67489?
Check whether you run @vitejs/plugin-rsc (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • @vitejs/plugin-rsc (npm): upgrade to 0.5.6 or later
    npm install @vitejs/plugin-rsc@0.5.6

Technical details

This is a code injection vulnerability (CWE-94) in the @vitejs/plugin-rsc development server caused by unsafe dynamic imports in RSC server function APIs (loadServerAction, decodeReply, decodeAction). The vulnerable code accepts user-controlled input from HTTP request headers and form data and passes it directly to JavaScript's import() function without validation, allowing attackers to load arbitrary modules including data URLs containing malicious code. The attack requires network access to a development server running on a network-reachable interface (especially with vite --host), with no authentication or user interaction required. An attacker can craft a POST request to the /_.rsc endpoint with specially crafted payloads to execute arbitrary Node.js code. The vulnerability is fixed in version 0.5.6.

Affected products

  • Vitejs plugin-rsc <= 0.5.5

Identifiers

  • CVE-2025-67489
  • GHSA-j76j-5p5g-9wfr

Timeline

  • 2025-12-08: disclosed
  • 2025-12-08: patched: Fix released in version 0.5.6
  • 2025-12-09: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.