permit2 (npm) · Malicious Code
Affects permit2Source GCVE Database
Malicious package : remove permit2 and rotate any secrets on hosts that installed it.
Data as of 12 Aug 2026, 16:58 UTC
Malicious package
Published to npm · OSV MAL-2026-13775
What to do
Remove permit2 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 |
|---|---|---|
| npmpermit2 | 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 'permit2' is a malicious package impersonating Uniswap's Permit2 token-approval system. It contains no legitimate functionality but executes a payload during installation that steals sensitive environment variables and credential files from the host. The stolen data is exfiltrated to an attacker-controlled endpoint. Hosts that installed this package should consider all exposed credentials compromised and rotate them immediately.