metadata-lib (npm) · Malicious Code
Affects metadata-libSource GCVE Database
Malicious package : remove metadata-lib and rotate any secrets on hosts that installed it.
Data as of 22 Nov 2026, 02:22 UTC
Malicious package
Published to npm · OSV MAL-2025-47999
What to do
Remove metadata-lib 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 |
|---|---|---|
| npmmetadata-lib | 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 'metadata-lib' version 2.0.0 and later communicates with a domain linked to malicious activity. Installation or execution of this package results in a fully compromised system, potentially exposing all stored secrets and keys. Immediate removal of the package and rotation of all secrets from a separate, uncompromised system is strongly advised.