Two malicious versions of the popular Axios library were briefly published to the npm registry on March 31, 2026, following a targeted social engineering attack on a maintainer.
Key Points
- Malicious versions 1.14.1 and 0.30.4 were live on npm for approximately three hours before removal.
- The compromised packages injected a remote access trojan via the dependency plain-crypto-js@4.2.1.
- Affected users are advised to rotate all credentials and secrets on any machine where the malicious versions were installed.
- The attacker gained access to the maintainer's npm account after a two-week social engineering campaign.
- Future security measures include adopting OIDC publishing flows and implementing immutable release setups to prevent unauthorized access.