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

Source: https://junglewise.ai/threats/cve-2025-67489-vitejs-plugin-rsc-code-injection-in-development-server  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-09. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/vitejs-plugin-rsc). Vendors: [npm](https://junglewise.ai/threats/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

  ```sh
  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

- [https://github.com/vitejs/vite-plugin-react/security/advisories/GHSA-j76j-5p5g-9wfr](https://github.com/vitejs/vite-plugin-react/security/advisories/GHSA-j76j-5p5g-9wfr)

## Related threats

- [Vitejs plugin-rsc denial of service in React Server Components](https://junglewise.ai/threats/vitejs-plugin-rsc-denial-of-service-in-react-server-components-a8d7aac1)
- [Vitejs plugin-rsc Denial of Service with React Server Components](https://junglewise.ai/threats/vitejs-plugin-rsc-denial-of-service-with-react-server-components-d98230f7)
- [Vite @vitejs/plugin-rsc arbitrary file read in /__vite_rsc_findSourceMapURL](https://junglewise.ai/threats/cve-2025-68155-vite-vitejs-plugin-rsc-arbitrary-file-read-in-vite-rsc)
- [Vite Plugin React source code exposure in Server Components](https://junglewise.ai/threats/vite-plugin-react-source-code-exposure-in-server-components-88776524)
- [Vite Plugin React denial of service in React Server Components](https://junglewise.ai/threats/vite-plugin-react-denial-of-service-in-react-server-components-8f1b9330)
