Skip to main content
MalwarePublished Updated

wp-env (npm) · Malicious Code

Affects wp-envSource GCVE Database

0

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

Data as of 1 Dec 2026, 14:46 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5582

What to do

Remove wp-env 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
npmwp-envAffected
  • =1.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

A malicious npm package named 'wp-env' impersonates the legitimate @wordpress/env CLI tool. When executed via 'npx wp-env', it exfiltrates the basename of the installer's project directory along with timestamp and package metadata to an attacker-controlled URL. This typosquatting attack enables data leakage from developers who mistakenly run this package. The package self-identifies as a 'Security PoC for Bug Bounty' but poses a real risk of compromise. Systems with this package installed or running should be considered fully compromised.

References

Community reviews

Loading reviews…