Axios NPM Package Compromised: Supply Chain Attack Hits JavaScript HTTP Client with 100M+ Weekly Downloads

Summary: Axios, a widely used JavaScript HTTP client with over 100 million weekly downloads on npm, was compromised by a sophisticated supply chain attack that published malicious versions and distributed malware through a false dependency.

Axios, a widely used JavaScript HTTP client with more than 100 million weekly downloads via npm, was compromised by a sophisticated supply chain attack. The attacker utilized stolen credentials from user jasonsaayman to publish malicious versions (1.14.1 and 0.30.4) that distributed a remote access trojan (RAT) across multiple platforms.

The compromise was particularly ingenious: the attacker introduced a phantom dependency called plain-crypto-js@4.2.1, which executed a postinstall hook to implant persistent malware in macOS, Windows, and Linux systems. The malware operated covertly before auto-deleting itself, deleting its own files with clean copies to avoid forensic detection.

Automated npm security scanners detected the malicious dependency within minutes, demonstrating the importance of monitoring tools. NPM administration quickly removed the compromised versions, but thousands of developers could have been impacted during the exposure window.

Key facts

  • Axios is a popular JavaScript HTTP client with over 100 million weekly downloads on npm.
  • The attacker published malicious versions (1.14.1 and 0.30.4) that distributed malware through a false dependency.
  • Automated npm security scanners detected the malicious dependency within minutes.

Why it matters

This incident underscores the need to strengthen security measures in software supply chains, particularly in the use of dependencies and CI/CD processes.

X profile@trendaisecurityhttps://x.com/trendaisecurity
Embedded content for: Axios NPM Package Compromised: Supply Chain Attack Hits JavaScript HTTP Client with 100M+ Weekly Downloads