# GHSA-c6m7-q6pr-c64r: Vite Plugin React has a Source Code Exposure Vulnerability in React Server Components

> An attacker can access source code via a vulnerability in the vendored React Server Components library within the Vite plugin.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Dec 2025

## What is GHSA-c6m7-q6pr-c64r?

GHSA-c6m7-q6pr-c64r is a vulnerability in @vitejs/plugin-rsc, published on 12 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact

`@vitejs/plugin-rsc` vendors `react-server-dom-webpack`, which contained a vulnerability in versions prior to 19.2.3. See details in React repository's advisory https://github.com/facebook/react/security/advisories/GHSA-925w-6v3x-g4j4

### Patches

Upgrade immediately to `@vitejs/plugin-rsc@0.5.7` or later.

## Which versions are affected by GHSA-c6m7-q6pr-c64r?

2 open source packages ship an affected version, including @vitejs/plugin-rsc.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@vitejs/plugin-rsc` | npm | All versions | 0.5.7 |
| `@vitejs/plugin-rsc` | npm | All versions | 0.5.7 |

## How do I fix GHSA-c6m7-q6pr-c64r?

Upgrade @vitejs/plugin-rsc to 0.5.7 or later.

## Is GHSA-c6m7-q6pr-c64r being exploited?

There is no known exploitation of GHSA-c6m7-q6pr-c64r in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-c6m7-q6pr-c64r and fix it if it is affected.

What it is: GHSA-c6m7-q6pr-c64r is a vulnerability in @vitejs/plugin-rsc, published on 12 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-c6m7-q6pr-c64r in the wild and no public exploit code.

Affected packages and fixed versions:
- @vitejs/plugin-rsc (npm): affected all versions; fixed in 0.5.7
- @vitejs/plugin-rsc (npm): affected all versions; fixed in 0.5.7

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-c6m7-q6pr-c64r/ (Markdown: https://insights.sbomify.com/GHSA-c6m7-q6pr-c64r/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-c6m7-q6pr-c64r

---
From sbomify Insights: https://insights.sbomify.com/GHSA-c6m7-q6pr-c64r/
Summaries are generated and may contain mistakes; the official description above is the record.
