ai-analyzer (npm) · Malicious Code
Affects ai-analyzerSource GCVE Database
Malicious package : remove ai-analyzer and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:16 UTC
Malicious package
Published to npm · OSV MAL-2026-13934
What to do
Remove ai-analyzer 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 |
|---|---|---|
| npmai-analyzer | 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 ai-analyzer npm package versions 1.0.14 through 1.0.19 contain malicious code that performs unauthorized data exfiltration during installation and runtime. The preinstall script leaks the installer's hostname and environment details to an external domain controlled by an offensive-security actor. Additionally, a postinstall script writes sensitive user and environment information to a temporary local file. The package's analyzeEmail() function sends caller-supplied content to a hardcoded external server without user control or consent, potentially exposing sensitive data.
References
- npmjs.com/package/ai-analyzer/v/1.0.19 (opens in a new tab)
- npmjs.com/package/ai-analyzer/v/1.0.16 (opens in a new tab)
- npmjs.com/package/ai-analyzer/v/1.0.14 (opens in a new tab)
- npmjs.com/package/ai-analyzer/v/1.0.17 (opens in a new tab)
- npmjs.com/package/ai-analyzer/v/1.0.18 (opens in a new tab)
- npmjs.com/package/ai-analyzer/v/1.0.15 (opens in a new tab)
- github.com/advisories/GHSA-fqv8-262c-j5xv (opens in a new tab)