react-dev-utils on Windows vulnerable to Remote Code Execution
Facebook react-dev-utils
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| react-dev-utils npm |
|
|
Facebook react-dev-utils
| Product | Affected | Fixed in |
|---|---|---|
| react-dev-utils npm |
|
|
4.2.25.0.2react-dev-utils on Windows allows developers to run a local webserver for accepting various commands, including a command to launch an editor. The input to that command was not properly sanitized, allowing an attacker who can make a network request to the server (either via CSRF or by direct request) to execute arbitrary commands on the targeted system. This issue affects multiple branches: 1.x.x prior to 1.0.4, 2.x.x prior to 2.0.2, 3.x.x prior to 3.1.2, 4.x.x prior to 4.2.2, and 5.x.x prior to 5.0.2.
From the CVE record · facebook
On Windows, the local webserver in react-dev-utils does not properly sanitize input to its editor launch command. An attacker who can make a network request to the server, directly or via CSRF, can execute arbitrary commands on the targeted system.
Developers using react-dev-utils on Windows should check versions 1.x before 1.0.4, 2.x before 2.0.2, 3.x before 3.1.2, 4.x before 4.2.2, and 5.x before 5.0.2.