node-fsagent (npm) · Malicious Code
Affects node-fsagentSource GCVE Database
Malicious package : remove node-fsagent and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-10506
What to do
Remove node-fsagent 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 |
|---|---|---|
| npmnode-fsagent | 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 node-fsagent npm package contains malicious code that archives the host's /root/.codex directory, splits the archive into chunks, and exfiltrates the data by publishing these chunks as sequential npm package versions using a reconstructed npm registry authentication token. The token is embedded and reconstructed at runtime, granting publish rights to the attacker's npm account. The package's main entry is empty and does not auto-execute the malicious script; the harmful behavior occurs only if the archive-sender.js script is run directly. The package has no legitimate functionality and serves solely as a covert data exfiltration and credential distribution tool.
References
- npmjs.com/package/node-fsagent/v/1.1.3 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.2.2 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.0.4 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.1.2 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.1.1 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.2.0 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.0.0 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.0.8 (opens in a new tab)
- npmjs.com/package/node-fsagent/v/1.2.1 (opens in a new tab)
- github.com/advisories/GHSA-qgvj-fw22-j5v6 (opens in a new tab)