# CVE-2025-11953: React Native Community CLI OS Command Injection

> Unauthenticated attackers can execute arbitrary commands via the Metro Development Server exposed by React Native Community CLI.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 5 Feb 2026 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Nov 2025
- **Updated:** 26 Feb 2026
- **Also known as:** CLSA-2026-1789566692, CLSA-2026-1789568169, CLSA-2026-1790866461, CLSA-2026-1790869390, CLSA-2026-1790870094, CLSA-2026-1790871357, CLSA-2026-1790877607, CLSA-2026-1790877670, CLSA-2026-1790878081, CLSA-2026-1790878902, CLSA-2026-1790879434, CLSA-2026-1790884245, CLSA-2026-1792226841, CLSA-2026-1792226842, CLSA-2026-1792226843, CLSA-2026-1792226844, CLSA-2026-1792226845, CLSA-2026-1792226846, CLSA-2026-1792226847, CLSA-2026-1792226848, CLSA-2026-1792226849, CLSA-2026-1792226850, CLSA-2026-1792226851, CLSA-2026-1792226852, CLSA-2026-1792255998, CLSA-2026-1792255999, CLSA-2026-1792256000, CLSA-2026-1792256001, CLSA-2026-1792256002, CLSA-2026-1792256003, CLSA-2026-1792256004, CLSA-2026-1792256005, CLSA-2026-1792256007, CLSA-2026-1792256008, CLSA-2026-1792256009, CLSA-2026-1792595218, CLSA-2026-1792595220, CLSA-2026-1792595221, CLSA-2026-1792595222, CLSA-2026-1792595223, CLSA-2026-1792595224, CLSA-2026-1792595225, CLSA-2026-1792595226, CLSA-2026-1792595227, CLSA-2026-1792595228, CLSA-2026-1792595229, GHSA-399j-vxmf-hjvr

## What is CVE-2025-11953?

CVE-2025-11953 is a critical command injection vulnerability in react-native-community:react_native_community_cli, published on 3 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The Metro Development Server, which is opened by the React Native Community CLI, binds to external interfaces by default. The server exposes an endpoint that is vulnerable to OS command injection. This allows unauthenticated network attackers to send a POST request to the server and run arbitrary executables. On Windows, the attackers can also execute arbitrary shell commands with fully controlled arguments.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

## Which versions are affected by CVE-2025-11953?

12 open source packages ship an affected version, including @react-native-community/cli and @react-native-community/cli-server-api. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@react-native-community/cli` | npm | From 18.0.0 | 18.0.1 |
| `@react-native-community/cli` | npm | From 18.0.0 | 18.0.1 |
| `@react-native-community/cli` | npm | From 19.0.0-alpha.0 | 19.1.2 |
| `@react-native-community/cli` | npm | From 19.0.0-alpha.0 | 19.1.2 |
| `@react-native-community/cli` | npm | From 20.0.0-alpha.0 | 20.0.0 |
| `@react-native-community/cli` | npm | From 20.0.0-alpha.0 | 20.0.0 |
| `@react-native-community/cli-server-api` | npm | From 18.0.0 | 18.0.1 |
| `@react-native-community/cli-server-api` | npm | From 18.0.0 | 18.0.1 |
| `@react-native-community/cli-server-api` | npm | From 19.0.0-alpha.0 | 19.1.2 |
| `@react-native-community/cli-server-api` | npm | From 19.0.0-alpha.0 | 19.1.2 |
| `@react-native-community/cli-server-api` | npm | From 20.0.0-alpha.0 | 20.0.0 |
| `@react-native-community/cli-server-api` | npm | From 20.0.0-alpha.0 | 20.0.0 |

Products: React-Native-Community React Native Community Cli.

## How do I fix CVE-2025-11953?

Upgrade @react-native-community/cli to a fixed version for your release line: 18.0.1, 19.1.2 or 20.0.0. US federal agencies must fix it by 26 Feb 2026.

## Is CVE-2025-11953 being exploited?

Yes. Attackers have exploited CVE-2025-11953 in the wild since at least 5 Feb 2026.

Public exploit code:

- CVE-2025-11953 demonstration: Critical RCE vulnerability in React Native CLI (CVSS 9.8). Educational security research with proof-of-concept exploits and mitigation strategies. (github_poc): https://github.com/SaidBenaissa/cve-2025-11953-vulnerability-demo
- CVE-2025-11953 is a critical Remote Code Execution (RCE) vulnerability in the React Native CLI's Metro development server (github_poc): https://github.com/Mr-In4inci3le/CVE-2025-11953-POC-
- CVE-2025-11953 - The React Native Metro server's default external binding exposes a vulnerable endpoint, allowing unauthenticated attackers to execute arbitrary OS commands via a malicious POST request. (github_poc): https://github.com/boroeurnprach/CVE-2025-11953-PoC
- React Native Community CLI - Unauthenticated OS Command Injection (nuclei): http/cves/2025/CVE-2025-11953.yaml

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-11953 and fix it if it is affected.

What it is: CVE-2025-11953 is a critical command injection vulnerability in react-native-community:react_native_community_cli, published on 3 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2025-11953 in the wild since at least 5 Feb 2026.

Affected packages and fixed versions:
- @react-native-community/cli (npm): affected from 18.0.0; fixed in 18.0.1
- @react-native-community/cli (npm): affected from 18.0.0; fixed in 18.0.1
- @react-native-community/cli (npm): affected from 19.0.0-alpha.0; fixed in 19.1.2
- @react-native-community/cli (npm): affected from 19.0.0-alpha.0; fixed in 19.1.2
- @react-native-community/cli (npm): affected from 20.0.0-alpha.0; fixed in 20.0.0
- @react-native-community/cli (npm): affected from 20.0.0-alpha.0; fixed in 20.0.0
- @react-native-community/cli-server-api (npm): affected from 18.0.0; fixed in 18.0.1
- @react-native-community/cli-server-api (npm): affected from 18.0.0; fixed in 18.0.1
- @react-native-community/cli-server-api (npm): affected from 19.0.0-alpha.0; fixed in 19.1.2
- @react-native-community/cli-server-api (npm): affected from 19.0.0-alpha.0; fixed in 19.1.2
- @react-native-community/cli-server-api (npm): affected from 20.0.0-alpha.0; fixed in 20.0.0
- @react-native-community/cli-server-api (npm): affected from 20.0.0-alpha.0; fixed in 20.0.0

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/CVE-2025-11953/ (Markdown: https://insights.sbomify.com/CVE-2025-11953/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-11953
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-11953
- OSV: https://osv.dev/vulnerability/CVE-2025-11953

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-11953/
Summaries are generated and may contain mistakes; the official description above is the record.
