CVE-2025-68155 @vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development
HighCVSS 7.5
EPSS 0.54%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| vitejs @vitejs/plugin-rsc(npm) | < 0.5.8 | 0.5.8 | Fixed |
| vitejs vite-plugin-react | = < 0.5.8 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vitejs @vitejs/plugin-rsc(npm) | < 0.5.8 | 0.5.8 |
| vitejs vite-plugin-react | = < 0.5.8 | No fix listed |
References
- https://github.com/vitejs/vite-plugin-react/security/advisories/GHSA-g239-q96q-x4qm vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/facebook/react/pull/29708 patch
- https://github.com/facebook/react/pull/30741 patch
- https://github.com/vitejs/vite-plugin-react/commit/582fba0b9a52b13fcff6beaaa3bfbd532bc5359d patch
- github.com
- github.com product