# MAL-2026-5582: Malicious code in wp-env (npm)


- **Type:** Malicious package
- **Package:** `wp-env` (npm)
- **Published:** 11 Jun 2026

## What is MAL-2026-5582?

MAL-2026-5582 is a malicious package in wp-env, published on 11 Jun 2026. 

### Official description

Package squats the `wp-env` CLI name commonly invoked as `npx wp-env` by users intending @wordpress/env. The package ships only `bin/run.js` (declared `main: index.js` is absent from the tarball), so its sole execution surface is the bin script that fires when a developer runs `npx wp-env`. On execution, bin/run.js reads `process.env.INIT_CWD`, derives the basename of the installer's project directory, and POSTs it together with timestamp and package metadata to a hardcoded callback URL `https://deepbounty.dd06-dev.fr/cb/dc43de99-70fc-4782-8668-bec6eee1975b`. The package self-describes as a 'Security PoC for Bug Bounty' — name-confusion attack against @wordpress/env combined with concrete installer-side data exfiltration (the project directory basename, sent to an attacker-controlled host that uses a per-target callback path to identify successfully-confused victims). This satisfies both the typosquat shape (≤2 char edit / namespace confusion vs. @wordpress/env's `wp-env` CLI) and a concrete exfil payload to an attacker-controlled destination.

## What should I do about MAL-2026-5582?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-5582 is a malicious package: wp-env (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-5582/ (Markdown: https://insights.sbomify.com/MAL-2026-5582/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-5582

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-5582/
Summaries are generated and may contain mistakes; the official description above is the record.
