CVE-2025-68155CWE-22CWE-73

@vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development

High · published December 16, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
42.4
In the wild
Unconfirmed
What it is

⚡ A single crafted HTTP request is all it takes to read any file on your server! Before version 0.5.8, the `@vitejs/plugin-rsc` allowed unauthenticated file read during development, leaving your secrets exposed! 🔥 Think of it like a restaurant where anyone can walk into the kitchen and check any recipe without permission, just because the door was left open. If a crafty individual knows the right questions to ask, they can access anything they want. This vulnerability could lead to an attacker gaining unauthorized access to sensitive files on your server, potentially exposing confidential information or critical source code. The ramifications could be absolutely devastating for both developers and users, as it leaves the door wide open for data leaks or exploitation.

Put simply

Think of it like a restaurant where anyone can walk into the kitchen and check any recipe without permission, just because the door was left open. If a crafty individual knows the right questions to ask, they can access anything they want. The issue arises from the `/__vite_rsc_findSourceMapURL` endpoint, which allowed unauthenticated users to specify a `file://` URL in the `filename` query parameter, enabling arbitrary file reads on the server's file system during development mode.

What to do

This vulnerability could lead to an attacker gaining unauthorized access to sensitive files on your server, potentially exposing confidential information or critical source code. The ramifications could be absolutely devastating for both developers and users, as it leaves the door wide open for data leaks or exploitation. Upgrade your `@vitejs/plugin-rsc` to version 0.5.8 or later immediately to close this security hole! Additionally, ensure that you restrict access to development endpoints in production environments to prevent similar risks. You've got this! Secure your project and protect your files with these updates! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00507 · 42.4th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-73 · External Control of File Name or Path
Published
2025-12-16T18:20Z
EPSS history
Timeline
  • 16 DEC 18:20Z
    @vitejs/plugin-rsc has Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint on Development
    cvelistv5