CVE-2025-68155: vitejs vite-plugin-react · Path Traversal
Affects vitejs vite-plugin-reactSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.5.8 soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.5.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade vitejs vite-plugin-react to 0.5.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| vitejs vite-plugin-react | Affected
| Fixed in
|
AI-suggested
1. Upgrade vite-plugin-react to version 0.5.8 or later immediately to apply the patch that fixes the vulnerability. 2. Restrict network access to development servers running Vite and vite-plugin-react, ensuring they are not publicly accessible or exposed to untrusted networks. 3. Implement strict firewall rules and VPN requirements for accessing development environments. 4. Conduct audits of development infrastructure to identify any instances of vulnerable versions and remediate promptly. 5. Use environment segmentation to isolate development environments from production and sensitive data stores. 6. Monitor HTTP endpoints for suspicious requests targeting /__vite_rsc_findSourceMapURL or unusual file:// URL patterns. 7. Educate development teams about secure configuration practices and the risks of exposing development tools publicly. 8. Consider implementing runtime application self-protection (RASP) or web application firewalls (WAF) that can detect and block path traversal attempts. 9. Review and minimize file system permissions granted to Node.js processes to limit accessible files in case of exploitation.
Description
@vitejs/plugin-rs provides React Server Components (RSC) support for Vite. Prior to version 0.5.8, the `/__vite_rsc_findSourceMapURL` endpoint in `@vitejs/plugin-rsc` allows unauthenticated arbitrary file read during development mode. An attacker can read any file accessible to the Node.js process by sending a crafted HTTP request with a `file://` URL in the `filename` query parameter. Version 0.5.8 fixes the issue.
References
- github.com/vitejs/vite-plugin-react/security/advisories/GHSA-g239-q96q-x4qm (opens in a new tab)
- github.com/facebook/react/pull/29708 (opens in a new tab)
- github.com/facebook/react/pull/30741 (opens in a new tab)
- github.com/vitejs/vite-plugin-react/commit/582fba0b9a52b13fcff6beaaa3bfbd532bc5359d (opens in a new tab)