react-wp-viewer (npm) · Malicious Code
Affects react-wp-viewerSource GCVE Database
Malicious package : remove react-wp-viewer and rotate any secrets on hosts that installed it.
Data as of 21 Aug 2026, 16:28 UTC
Malicious package
Published to npm · OSV MAL-2026-6571
What to do
Remove react-wp-viewer 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-wp-viewer | 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-wp-viewer versions 0.2.4, 0.2.15, and 0.2.99 is a dependency-confusion malicious package. Its postinstall script makes an HTTP request to an attacker-controlled IP, leaking environment details such as the installer's IP and hostname. This behavior indicates it is squatting on an internal package name to gather reconnaissance data. The package may lead to full system compromise, and any secrets on affected systems should be rotated immediately.