Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @vitejs/plugin-rsc
  4. ›
  5. CVE-2025-68155

CVE-2025-68155: @vitejs/plugin-rsc has an Arbitrary File Read via `/__vite_rsc_findSourceMapURL` Endpoint

December 16, 2025

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.

Severity: High Attack Vector: Network Privileges Required: None Scope: Development mode only (vite dev)


References

  • github.com/advisories/GHSA-g239-q96q-x4qm
  • github.com/facebook/react/pull/29708
  • github.com/facebook/react/pull/30741
  • github.com/vitejs/vite-plugin-react
  • github.com/vitejs/vite-plugin-react/commit/582fba0b9a52b13fcff6beaaa3bfbd532bc5359d
  • github.com/vitejs/vite-plugin-react/security/advisories/GHSA-g239-q96q-x4qm
  • nvd.nist.gov/vuln/detail/CVE-2025-68155

Code Behaviors & Features

Detect and mitigate CVE-2025-68155 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.5.8

Fixed versions

  • 0.5.8

Solution

Upgrade to version 0.5.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

npm/@vitejs/plugin-rsc/CVE-2025-68155.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:10 +0000.