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.
Command injection in React Native Community CLI allows remote attackers to perform remote code execution by sending HTTP requests
Problem type
Affected products
< 20.0.0 - AFFECTED
References
https://jfrog.com/blog/cve-2025-11953-critical-react-native-community-cli-vulnerability
https://github.com/react-native-community/cli/commit/15089907d1f1301b22c72d7f68846a2ef20df547
GitHub Security Advisories
GHSA-399j-vxmf-hjvr
@react-native-community/cli has arbitrary OS command injection
https://github.com/advisories/GHSA-399j-vxmf-hjvrThe 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.
https://nvd.nist.gov/vuln/detail/CVE-2025-11953
https://github.com/react-native-community/cli/commit/15089907d1f1301b22c72d7f68846a2ef20df547
https://jfrog.com/blog/cve-2025-11953-critical-react-native-community-cli-vulnerability
https://github.com/react-native-community/cli/releases/tag/v20.0.0
https://github.com/react-native-community/cli/pull/1615
https://github.com/react-native-community/cli/commit/5a792169d9883e0b0fb1ddf1ea46778f21510d18
https://github.com/react-native-community/cli/commit/9e1fa8cc633e5dcf32244ffa60a871880be56722
https://github.com/react-native-community/cli/commit/a8293dc29425f56249753507bc24d87b698d46e1
https://github.com/react-native-community/cli?tab=readme-ov-file#compatibility
https://x.com/SzymonRybczak/status/1986199665000566848
https://github.com/advisories/GHSA-399j-vxmf-hjvr
JSON source
https://cveawg.mitre.org/api/cve/CVE-2025-11953Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2025-11953",
"assignerOrgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
"assignerShortName": "JFROG",
"dateUpdated": "2025-11-03T20:49:36.194Z",
"dateReserved": "2025-10-20T10:34:44.694Z",
"datePublished": "2025-11-03T16:35:07.168Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
"shortName": "JFROG",
"dateUpdated": "2025-11-03T19:10:09.928Z"
},
"title": "Command injection in React Native Community CLI allows remote attackers to perform remote code execution by sending HTTP requests",
"descriptions": [
{
"lang": "en",
"value": "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.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "<p>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.</p>"
}
]
}
],
"affected": [
{
"collectionURL": "https://www.npmjs.com",
"packageName": "@react-native-community/cli-server-api",
"defaultStatus": "unaffected",
"versions": [
{
"version": "4.8.0",
"status": "affected",
"versionType": "semver",
"lessThan": "20.0.0"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')",
"cweId": "CWE-78",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://jfrog.com/blog/cve-2025-11953-critical-react-native-community-cli-vulnerability",
"tags": [
"technical-description"
]
},
{
"url": "https://github.com/react-native-community/cli/commit/15089907d1f1301b22c72d7f68846a2ef20df547",
"tags": [
"patch"
]
}
],
"metrics": [
{
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
],
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL"
}
}
]
},
"adp": [
{
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-11-03T20:49:36.194Z"
},
"title": "CISA ADP Vulnrichment",
"metrics": [
{}
]
}
]
}
}