Skip to main content
MalwarePublished Updated

api-nebula (npm) · Malicious Code

Affects api-nebulaSource GCVE Database

0

Malicious package : remove api-nebula and rotate any secrets on hosts that installed it.

Data as of 12 Oct 2026, 22:08 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17531

What to do

Remove api-nebula 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

ProductAffectedFixed in
npmapi-nebulaAffected
  • =1.0.0
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 'api-nebula' version 1.0.0 contains a malicious preinstall script that executes obfuscated JavaScript code during installation. This code uses a custom pseudo-random number generator and string-table decoder to conceal its true behavior, which includes executing arbitrary attacker-controlled code on the installer's machine. The obfuscation prevents static analysis from revealing network destinations or commands. Installing this package can lead to full system compromise, and any secrets or keys on the affected machine should be considered exposed and rotated immediately.

References

Community reviews

Loading reviews…