Research · Nov 3, 2025
Critical OS Command Injection Vulnerability in React Native Community CLI
A serious OS command injection vulnerability has been identified in the React Native Community CLI, potentially exposing systems to unauthorized command execution.
What changed
The React Native Community CLI has been found to contain a vulnerability in the Metro Development Server. This server, which is activated by default, binds to external interfaces and exposes an endpoint susceptible to OS command injection.
Unauthorized attackers can exploit this weakness by sending specially crafted POST requests, enabling them to execute arbitrary commands on the server.
Who is affected
The vulnerability primarily impacts users of the React Native Community CLI, particularly those utilizing the Metro Development Server. Given its default configuration, many installations may be at risk.
Organizations using React Native for mobile application development should be particularly vigilant, as the exploit could lead to severe security breaches.
- React Native Community CLI users
- Developers utilizing Metro Development Server
- Organizations deploying mobile applications with React Native
- IT teams managing server configurations for React Native projects
What to do
It is crucial for affected users to assess their current configurations and apply necessary updates to mitigate the risk associated with this vulnerability. Regular security audits are recommended to identify potential exposures.
Users should also consider implementing additional security measures, such as restricting access to the Metro Development Server and monitoring network traffic for unusual activity.