@krentzen/buffer-reverse (npm) · Malicious Code
Affects @krentzen/buffer-reverseSource GCVE Database
Malicious package : remove @krentzen/buffer-reverse and rotate any secrets on hosts that installed it.
Data as of 26 Jun 2026, 22:09 UTC
Malicious package
Published to npm · OSV MAL-2026-6536
What to do
Remove @krentzen/buffer-reverse 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@krentzen/buffer-reverse | 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 @krentzen/buffer-reverse npm package version 1.0.3 is a malicious package impersonating a legitimate utility. It contains heavily obfuscated code that executes at import time, detaching a child Node process which downloads and executes an attacker-controlled binary from the internet. This binary is unsigned and unverified, allowing execution of arbitrary native code on the host system. Any project requiring this package will run this malicious code, potentially compromising the environment.