Skip to main content
MalwarePublished Updated

ai-node-relay (npm) · Malicious Code

Affects ai-node-relaySource GCVE Database

0

Malicious package : remove ai-node-relay and rotate any secrets on hosts that installed it.

Data as of 9 Jul 2026, 10:48 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6518

What to do

Remove ai-node-relay 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
npmai-node-relayAffected–Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The ai-node-relay npm package contains obfuscated malicious code that, upon being required, immediately starts a public Fastify server listening on all interfaces and collects host fingerprint data. It sends this data to a configurable gateway URL and allows the gateway to overwrite encryption-related environment variables at runtime. While it does not perform credential scraping or remote code execution, the behavior expands trust to the configured gateway and poses a significant risk. The package is considered fully compromising to any system where it is installed or running.

References

Community reviews

Loading reviews…