# GHSA-cpqf-f22c-r95x: Vite Plugin React has a Denial of Service Vulnerability in React Server Components

> A denial of service vulnerability in the vendored React Server Components library allows attackers to disrupt services using the Vite React 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-cpqf-f22c-r95x?

GHSA-cpqf-f22c-r95x is a denial of service 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-7gmr-mq3h-m5h9

### Patches

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

## Which versions are affected by GHSA-cpqf-f22c-r95x?

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-cpqf-f22c-r95x?

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

## Is GHSA-cpqf-f22c-r95x being exploited?

There is no known exploitation of GHSA-cpqf-f22c-r95x in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-cpqf-f22c-r95x and fix it if it is affected.

What it is: GHSA-cpqf-f22c-r95x is a denial of service 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-cpqf-f22c-r95x 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-cpqf-f22c-r95x/ (Markdown: https://insights.sbomify.com/GHSA-cpqf-f22c-r95x/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-cpqf-f22c-r95x

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