Code injection in vitejs vite-plugin-react
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
@vitejs/plugin-rs provides React Server Components (RSC) support for Vite. Versions 0.5.5 and below are vulnerable to arbitrary remote code execution on the development server through unsafe dynamic imports in server function APIs (loadServerAction, decodeReply, decodeAction) when integrated into RSC applications that expose server function endpoints. Attackers with network access to the development server can read/modify files, exfiltrate sensitive data (source code, environment variables, credentials), or pivot to other internal services. While this affects development servers only, the risk increases when using vite --host to expose the server on all network interfaces. This issue is fixed in version 0.5.6.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vitejs | vite-plugin-react | before 0.5.6 | 0.5.6 | Patch available | CNA |
| — | @vitejs/plugin-rsc (npm) | before 0.5.6 | 0.5.6 | Patch available | GHSA-j76j-5p5g-9wfr |
- vite-plugin-react Vendorvitejs Affected before 0.5.6 Fixed in 0.5.6 Patch available CNA
- @vitejs/plugin-rsc (npm) Vendor— Affected before 0.5.6 Fixed in 0.5.6 Patch available GHSA-j76j-5p5g-9wfr
Remediation
- Fix · CNA vite-plugin-react (vitejs) Fixed in 0.5.6
- Fix · GHSA-j76j-5p5g-9wfr @vitejs/plugin-rsc (npm) Fixed in 0.5.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-67489
- 2026-10-03 Alias added: GHSA-j76j-5p5g-9wfr
References
More vitejs vulnerabilities
- TI-2025-22386 Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query KEVCVSS 3.1HIGH 7.5
- TI-2026-28350 Vite Affected by Arbitrary File Read via Vite Dev Server WebSocket CVSS 4.0HIGH 8.2
- TI-2025-41735 @vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development CVSS 3.1HIGH 7.5
- TI-2025-21544 Vite bypasses server.fs.deny when using `?raw??` CVSS 3.1HIGH 7.5
- TI-2023-16938 Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) CVSS 3.1HIGH 7.5
- TI-2026-38634 Vite: `server.fs.deny` bypass on Windows alternate paths CVSS 4.0HIGH 8.2
Sources
- CVE-2025-67489 · CVE Program
- CVE-2025-67489 · NVD
- FIRST EPSS
- GHSA-j76j-5p5g-9wfr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences