Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-11953: Metro4Shell

Published Nov 3, 2025 · Updated 26 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS72.9%100th percentile
CISA KEVYesAdded Feb 5, 2026
In the wildActivePer CISA KEV
Vendor
React-Native-Community
IdentifiersCVE-2025-11953CWE-78 · Improper Neutralization of Special…

Metro4Shell is a critical OS command injection vulnerability in the React Native Community CLI and its cli-server-api middleware used by the Metro Development Server. The unauthenticated URL-opening POST handler passes attacker-controlled input to the open() function without adequate URL protocol validation. Because Metro binds to external interfaces by default, network-reachable instances can expose this behavior to remote attackers. Successful exploitation permits arbitrary executable launching on Windows, Linux, and macOS; on Windows, attackers can additionally execute arbitrary shell commands with fully controlled arguments. Execution occurs with the privileges of the user running Metro. The vulnerability affects development infrastructure rather than production React Native applications directly and has been exploited in the wild.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the confidentiality, integrity, and availability of affected developer workstations, CI runners, and development or test hosts through code execution as the Metro process user. Accessible source code, development credentials, and build resources may consequently be exposed or modified. Observed exploitation has delivered Rust-based malware, including P2Pinfect, and used PowerShell loaders that weaken Microsoft Defender protections before retrieving and executing payloads. The vulnerability does not itself establish privilege escalation beyond the Metro user's permissions.

Mitigation

If you can’t patch tonight, do this now.

Bind Metro explicitly to the loopback interface and block untrusted inbound access to its listening port with host firewalls and network segmentation. Avoid internet exposure of development servers and stop unnecessary Metro instances. Monitor URL-opening POST requests and unexpected child processes originating from Metro, especially encoded PowerShell execution and changes to Microsoft Defender exclusions. Investigate previously exposed systems for compromise; restricting access or patching does not remove malware already installed.

Remediation

Patch, then assume compromise.

Upgrade @react-native-community/cli and @react-native-community/cli-server-api to fixed releases appropriate to the deployed branch: 18.0.1, 19.1.2, or 20.0.0 and later maintained releases. Fixes were also backported to the 17.x branch, but an exact fixed 17.x version is not established here. Verify the effective middleware version in project dependencies, nested dependencies, and global CLI installations rather than relying solely on the top-level CLI version. Restart affected development servers after updating. Patched URL-opening handlers reject unsupported URL protocols.

Public exploits

Exploits

5 exploits validated by Mallory's analysis.

View more in app →
cve-2025-11953-vulnerability-demoThis repository is a comprehensive educational demonstration of CVE-2025-11953, a critical unauthenticated command injection vulnerability in the React Native CLI's Metro server (specifically in @react-native-community/cli-server-api <= 12.3.6). The vulnerability allows remote attackers to execute arbitrary OS commands by sending crafted POST requests to the /open-url endpoint, which is exposed by default and binds to all interfaces unless configured otherwise. The repository contains: - Multiple exploit scripts (Bash and PowerShell) that automate exploitation of the vulnerability, demonstrating RCE on both Windows and Unix-like systems. - A realistic vulnerable server implementation in Node.js (realistic-vulnerable-server.js) that mimics the actual vulnerable behavior, including endpoints for health checks and listing files created by attacks. - Setup scripts and configuration files to launch both vulnerable and secure environments for testing. - Example payloads that create files, gather system and network information, perform command chaining, and even add new users on Windows. The main attack vector is network-based, targeting the /open-url HTTP endpoint. The exploit scripts are operational and provide real RCE, not just detection. The repository is well-structured for educational and research purposes, with clear separation between exploit code, vulnerable server setup, and documentation. No fake or destructive payloads are present; all actions are for demonstration and proof-of-concept. Mitigation advice is included throughout the code and documentation, recommending upgrades to patched versions, restricting server binding to localhost, and implementing input validation.SaidBenaissa · Disclosed Nov 4, 2025 · bash · powershell · networkOperationalPoC-CVE-collectionThis repository is a PoC collection for several recent critical CVEs, with a focus here on CVE-2025-11953 (React Native Community CLI Metro Development Server RCE). The exploit targets the '/open-url' HTTP endpoint exposed by the Metro server, which is vulnerable to OS command injection due to unsanitized input passed to the Node.js 'open' package. The repository includes both a simple Bash PoC (exploit-basic.sh) and a full-featured Python exploitation framework (exploit-advanced.py). The Python tool supports single command execution, interactive mode, reverse shell deployment (PowerShell for Windows), and file upload (Windows). The exploit is operational and can be used against Windows, Linux, and MacOS targets, provided the vulnerable Metro server is accessible over the network. The main attack vector is unauthenticated network access to the Metro server's '/open-url' endpoint (typically on port 8081). The repository is well-documented, with detailed usage instructions, mitigation advice, and detection guidance. No hardcoded IPs or domains are present; the exploit is designed to be used against user-specified targets.N3k0t-dev · Disclosed Nov 10, 2025 · python · bash · networkOperationalPoC-CVE-collectionRepository is a small “PoC CVE collection” with 3 CVE folders referenced, but only CVE-2025-11953 contains actual exploit code in the provided archive (Python + Bash). The other two CVEs (CVE-2025-59287 WSUS deserialization RCE and CVE-2025-8941 Linux-PAM pam_namespace privesc) are documentation-only here (READMEs describe additional scripts like wsus-exploit.py/pam-exploit.c, but those files are not present in the provided file list). CVE-2025-11953 exploit purpose/structure: - Target: React Native Community CLI Metro development server exposing an `open-url` HTTP endpoint. - Primitive: unauthenticated network OS command injection by POSTing JSON to `/open-url` with a crafted `url` value. - Files: - `CVE-2025-11953/exploit-basic.sh`: minimal PoC that checks reachability (GET /) then POSTs to `$TARGET/open-url` with `{"url":"$COMMAND"}`; treats HTTP 200/204 as success. - `CVE-2025-11953/exploit-advanced.py`: a more featureful exploitation tool using `requests.Session()`. - `test_connectivity()` performs GET to base target URL. - `execute_command()` posts to `{target}/open-url` and supports OS selection; Windows wraps commands with `cmd /c`. - `upload_file()` reads a local file, base64-encodes it, and writes it to an arbitrary remote path via an inlined PowerShell `WriteAllBytes` command (Windows-only). - `get_reverse_shell()` sends an inlined PowerShell reverse shell that connects back to attacker-supplied `--lhost` and `--lport` (default 4444). Output is effectively blind (no command output parsing), consistent with the README warning. Notable fingerprintable network targets/endpoints: - HTTP endpoint `/open-url` on the Metro server (commonly port 8081) is the key exploit surface. - Reverse shell callback is to attacker-controlled TCP `lhost:lport` (default port 4444). Overall, this repo is primarily an operational RCE PoC/tooling for CVE-2025-11953, packaged alongside documentation for two additional CVEs that are not actually implemented in the provided code snapshot.GhoStZA-debug · Disclosed Nov 11, 2025 · python · bash · network · local (described only; no code present)OperationalCVE-2025-11953-POC-This repository is a research environment for CVE-2025-11953, a critical RCE vulnerability in the React Native CLI's Metro development server. It contains a fully functional, intentionally vulnerable server (VulnerableMetroServer.js) that exposes several HTTP endpoints, most notably /open-url, which is vulnerable to OS command injection via unsanitized user input. The /inject-test and /execute endpoints also allow command injection and direct command execution, respectively. The test-exploit.js script automates exploitation of these endpoints with various payloads, demonstrating the vulnerability's impact. The server logs all activity to metro_server.log. The repository is structured for security research and detection development, not for production use. The exploit is network-based, targeting the HTTP API of the Metro server, and allows arbitrary command execution on Windows (and other platforms) with the privileges of the Node.js process.Mr-In4inci3le · Disclosed Jan 12, 2026 · javascript · json · networkPoCCVE-2025-11953-PoCRepository is a small proof-of-concept for CVE-2025-11953 affecting the React Native/Metro development server exposure of an open-url endpoint (openURLMiddleware from @react-native-community/cli-server-api). The core idea is that the dev server may bind to external interfaces and exposes /open-url, which is described as vulnerable to OS command injection, allowing unauthenticated remote attackers to execute arbitrary executables; on Windows it can execute shell commands with controlled arguments. Structure/purpose by file: - README.md: Describes the vulnerability and impact (unauthenticated network OS command injection via Metro dev server /open-url). - vuln_server.js: Minimal reproduction server using Node http + connect, mounting openURLMiddleware at path '/open-url' and listening on port 8081. - poc.py: Python requests client that POSTs JSON {"url": "https://google.com"} to http://localhost:8081/open-url to demonstrate opening a browser. - windows_PoC.py: Similar Python client but uses {"url": "calc.exe"} to demonstrate launching an executable on Windows. - package.json / metro.config.js / index.js: Project scaffolding and dependencies to run the reproduction environment; index.js is a dummy entry. Exploit capabilities: remote, unauthenticated HTTP POST to a known endpoint (/open-url) with attacker-controlled JSON parameter 'url' that is processed by the vulnerable middleware, potentially resulting in command execution / arbitrary program launch on the host running the dev server. No advanced payload staging, persistence, or post-exploitation is included; it is a basic PoC demonstrating the vulnerable behavior.boroeurnprach · Disclosed Jan 15, 2026 · javascript · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
React-Native-CommunityReact Native Community Cliapplication
FAQ

Frequently asked questions

Is CVE-2025-11953 exploited in the wild?
Yes. As of Nov 2, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Feb 5, 2026.
Is there a public exploit for CVE-2025-11953?
Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2025-11953, the earliest disclosed Nov 4, 2025.
Is there a patch for CVE-2025-11953?
Upgrade @react-native-community/cli and @react-native-community/cli-server-api to fixed releases appropriate to the deployed branch: 18.0.1, 19.1.2, or 20.0.0 and later maintained releases. Fixes were also backported to the 17.x branch, but an exact fixed 17.x version is not established here.
What products are affected by CVE-2025-11953?
React-Native-Community React Native Community Cli.
How severe is CVE-2025-11953?
CVE-2025-11953 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 72.9% (100th percentile) as of Nov 2, 2026.
Activity feed

Recent activity

123 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
nuclei templates pull requestsNews · Aug 2, 2026Create CVE-2025-11953.yaml - React Native Community CLI - Unauthenticated OS Command Injection by Aryu-RU · Pull Request #16725 · projectdiscovery/nuclei-templates · GitHubA critical command injection vulnerability in the React Native Community CLI server API / Metro dev server middleware where an unauthenticated POST to /open-url passes attacker-controlled input to open(), enabling command execution.Read more ↗cyber security newsNews · May 22, 2026Hackers Abuse Middle East Telecom Networks for Large-Scale Command-and-Control OperationsA React Native CLI vulnerability referred to as Metro4Shell that was actively exploited via infrastructure on Saudi Arabia’s Mobily network to disable security tools and download malicious binaries.Read more ↗fortinet threat research blogNews · May 20, 2026Misconfigured, Enrolled and Dormant: Anatomy of a P2Pinfect Kubernetes Compromise | FortiGuard LabsA critical unauthenticated remote code execution vulnerability in the React Native Metro development server that P2Pinfect operators used as an initial access vector to recruit new botnet nodes.Read more ↗fortinet threat researchNews · May 20, 2026Misconfigured, Enrolled and Dormant: Anatomy of a P2Pinfect Kubernetes Compromise | FortiGuard LabsA critical unauthenticated remote code execution vulnerability in the React Native Metro development server that P2Pinfect operators used as an initial access vector to recruit new botnet nodes.Read more ↗
+23 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity94Community discussion across Reddit, Mastodon, and other social sources.