libxmljs2v2 (npm) · Malicious Code
Affects libxmljs2v2Source GCVE Database
Malicious package : remove libxmljs2v2 and rotate any secrets on hosts that installed it.
Data as of 25 Nov 2026, 12:06 UTC
Malicious package
Published to npm · OSV MAL-2026-1781
What to do
Remove libxmljs2v2 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 |
|---|---|---|
npmlibxmljs2v2pkg:npm/libxmljs2v2Other threats | 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 libxmljs2v2 version 0.30.2 was found to contain malicious code according to Amazon Inspector source data. This indicates that the package itself is compromised and may pose a security risk to users who install or use this specific version.