gaarf (npm) · Malicious Code
Affects gaarfSource GCVE Database
Malicious package : remove gaarf and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:31 UTC
Malicious package
Published to npm · OSV MAL-2026-14236
What to do
Remove gaarf 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 |
|---|---|---|
| npmgaarf | 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 'gaarf' version 3.2.1 contains malicious code in its postinstall script that collects host identifiers and sends them to a third-party server. This behavior occurs automatically during installation and targets users who likely mistyped the intended package name 'google/ads-api-report-fetcher'. The data exfiltration is not configurable and sends information to an external domain unrelated to the installer’s infrastructure.