ctf2libxmljs2 (npm) · Malicious Code
Affects ctf2libxmljs2Source GCVE Database
Malicious package : remove ctf2libxmljs2 and rotate any secrets on hosts that installed it.
Data as of 22 Nov 2026, 02:49 UTC
Malicious package
Published to npm · OSV MAL-2025-191571
What to do
Remove ctf2libxmljs2 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 |
|---|---|---|
npmctf2libxmljs2pkg:npm/ctf2libxmljs2Other 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 ctf2libxmljs2 version 0.30.2 was found to contain malicious code according to Amazon Inspector source data. This indicates the package itself is compromised and may perform unauthorized or harmful actions when used.