Command Injection Affecting @react-native-community/cli-server-api package, versions >=17.0.0 <20.0.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-REACTNATIVECOMMUNITYCLISERVERAPI-13836141
  • published6 Nov 2025
  • disclosed3 Nov 2025
  • creditOr Peles

Introduced: 3 Nov 2025

NewCVE-2025-11953  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade @react-native-community/cli-server-api to version 20.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via the url variable processing in openURLMiddleware.ts. An attacker can execute arbitrary system commands by sending crafted HTTP POST requests, if the Metro development server is in use. This server binds to all interfaces, exposing the application to remote connections.

Note: Only applications developed without a Framework are vulnerable, and code execution has only been demonstrated on Windows.

CVSS Base Scores

version 4.0
version 3.1