@react-native-community/cli
Affected
- introduced
20.0.0-alpha.0, fixed20.0.0(semver)
Fixed versions
20.0.0
Fix
- Fixed version
20.0.0npm install @react-native-community/[email protected]
Advisory
Also known as: CVE-2025-11953
@react-native-community/cli has arbitrary OS command injection
The Metro Development Server, which is opened by the React Native 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.
Critical Basis: The source's own band: CRITICAL
20.0.0-alpha.0, fixed 20.0.0 (semver)20.0.0
20.0.0npm install @react-native-community/[email protected]19.0.0-alpha.0, fixed 19.1.2 (semver)19.1.2
19.1.2npm install @react-native-community/[email protected]18.0.0, fixed 18.0.1 (semver)18.0.1
18.0.1npm install @react-native-community/[email protected]20.0.0-alpha.0, fixed 20.0.0 (semver)20.0.0
20.0.0npm install @react-native-community/[email protected]19.0.0-alpha.0, fixed 19.1.2 (semver)19.1.2
19.1.2npm install @react-native-community/[email protected]18.0.0, fixed 18.0.1 (semver)18.0.1
18.0.1npm install @react-native-community/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0