Supply Chain Attack on Axios Pulls Malicious Dependency from npm

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Anyone running axios versions 1.14.1 or 0.30.4 from npm this week is executing credential-stealing malware, so dependency versions must be checked and pinned immediately.

Read this as

Attackers hijacked updates to axios, a very popular piece of free software (a JavaScript library) downloaded from the npm package store 101 million times a week. Two recent versions, 1.14.1 and 0.30.4, included a fake helper package called plain-crypto-js that stole login credentials and installed a remote access trojan, letting attackers control computers. Anyone who installed those versions is affected. The attackers apparently got in using a leaked access token, not by hacking the code itself.

A supply chain attack compromised the axios npm package (101 million weekly downloads) by publishing versions 1.14.1 and 0.30.4 containing the malicious dependency plain-crypto-js, which steals credentials and installs a remote access trojan. The breach came from a leaked long-lived npm token. Any organisation running JavaScript builds must audit its dependency tree now; axios is considering trusted publishing to prevent a repeat.

The axios npm package (101M weekly downloads) was compromised via a leaked long-lived publish token: versions 1.14.1 and 0.30.4 added a freshly published dependency, plain-crypto-js, that steals credentials and installs a RAT. Notably, the malicious releases had no accompanying GitHub release, the same heuristic seen in last week's LiteLLM compromise. Axios has an open issue (7055) to adopt trusted publishing so only its GitHub Actions workflows can publish to npm.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

axios npm plain-crypto-js GitHub Actions LiteLLM GitHub

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading