grafeno-payments (npm) · Malicious Code
Affects grafeno-paymentsSource GCVE Database
Malicious package : remove grafeno-payments and rotate any secrets on hosts that installed it.
Data as of 9 Sep 2026, 13:08 UTC
Malicious package
Published to npm · OSV MAL-2026-15572
What to do
Remove grafeno-payments 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 |
|---|---|---|
| npmgrafeno-payments | 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 'grafeno-payments' version 1.0.0 contains malicious code executed during installation. Its preinstall script collects environment variables related to credentials, combines them with the host's username and hostname, encodes this data, and exfiltrates it via an unencrypted HTTP request. Additionally, on non-Windows systems, it opens a reverse shell to a remote attacker, allowing full remote code execution on the installer's machine. The malicious behavior is concealed behind a legitimate payments package facade.