react-dom-v17 (npm) · Malicious Code
Affects react-dom-v17Source GCVE Database
Malicious package : remove react-dom-v17 and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:58 UTC
Malicious package
Published to npm · OSV MAL-2026-10207
What to do
Remove react-dom-v17 from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmreact-dom-v17 | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'react-dom-v17' impersonates the legitimate 'react-dom' package and contains malicious code. During installation, a preinstall script executes commands to gather host and user information, including system identifiers and user details. This data is sent to an attacker-controlled external server, indicating data exfiltration intent. The preinstall script also enables arbitrary command execution on the installer system at install time, allowing potential follow-on malicious actions.