CVE-2025-68155
CVE-2025-68155 · @vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development
This page contains facts from public vulnerability sources. Check the original advisory before updating.
@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.
CVSS 7.5 · High · EPSS 0.5% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
vite-plugin-react
- Versions
- < 0.5.8: Affected
No fix published
@vitejs/plugin-rsc npm
- Affected ranges
- SEMVER: < 0.5.8
Update to 0.5.8
Original sources
- https://github.com/vitejs/vite-plugin-react/security/advisories/GHSA-g239-q96q-x4qm
- https://github.com/facebook/react/pull/29708
- https://github.com/facebook/react/pull/30741
- https://github.com/vitejs/vite-plugin-react/commit/582fba0b9a52b13fcff6beaaa3bfbd532bc5359d
- https://nvd.nist.gov/vuln/detail/CVE-2025-68155