Skip to main content
MalwarePublished Updated

react-wp-viewer (npm) · Malicious Code

Affects react-wp-viewerSource GCVE Database

0

Malicious package : remove react-wp-viewer and rotate any secrets on hosts that installed it.

Data as of 21 Aug 2026, 16:28 UTC

Classification

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

ProductAffectedFixed in
npmreact-wp-viewerAffected
  • =0.2.15
  • =0.2.4
  • =0.2.99
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.

References

Community reviews

Loading reviews…