Advisory

GHSA-399j-vxmf-hjvr

Also known as: CVE-2025-11953

Summary

@react-native-community/cli has arbitrary OS command injection

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2025-11-03 18:31 UTC
Modified
2026-02-05 21:49 UTC

Affected packages and fixes

@react-native-community/cli

npm · All systems

Affected

  • introduced 20.0.0-alpha.0, fixed 20.0.0 (semver)

Fixed versions

20.0.0

Fix

@react-native-community/cli

npm · All systems

Affected

  • introduced 19.0.0-alpha.0, fixed 19.1.2 (semver)

Fixed versions

19.1.2

Fix

@react-native-community/cli

npm · All systems

Affected

  • introduced 18.0.0, fixed 18.0.1 (semver)

Fixed versions

18.0.1

Fix

@react-native-community/cli-server-api

npm · All systems

Affected

  • introduced 20.0.0-alpha.0, fixed 20.0.0 (semver)

Fixed versions

20.0.0

Fix

@react-native-community/cli-server-api

npm · All systems

Affected

  • introduced 19.0.0-alpha.0, fixed 19.1.2 (semver)

Fixed versions

19.1.2

Fix

@react-native-community/cli-server-api

npm · All systems

Affected

  • introduced 18.0.0, fixed 18.0.1 (semver)

Fixed versions

18.0.1

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences