@debile/require-dir (npm) · Malicious Code
Affects @debile/require-dirSource GCVE Database
Malicious package : remove @debile/require-dir and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:50 UTC
Malicious package
Published to npm · OSV MAL-2026-10654
What to do
Remove @debile/require-dir 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 |
|---|---|---|
| npm@debile/require-dir | 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 @debile/require-dir is a typosquatted republishing of the popular require-dir package. Its package.json includes a preinstall script with a conditional curl command to an attacker-controlled server, currently disabled by an always-false condition. This setup allows an attacker to easily activate an install-time beacon for reconnaissance by modifying the condition. Versions 1.9.1 and 1.9.2 of @debile/require-dir are affected. No known exploits in the wild have been reported.