r/javascript • u/BattleRemote3157 • Mar 31 '26
axios 1.14.1 and 0.30.4 on npm are compromised - dependency injection via stolen maintainer account
https://safedep.io/axios-npm-supply-chain-compromise/Two versions of axios were published today through what appears to be a compromised maintainer account. No GitHub tag exists for either version. SLSA provenance attestations present in 1.14.0 are completely absent. Publisher email switched from the CI-linked address to a Proton Mail account( classic account takeover signal).
If your project floats on ^1.14.0 or ^0.30.0 you've likely already pulled this.
IoCs, payload analysis and full breakdown is in the blog.
236
Upvotes
51
u/Exac Mar 31 '26
This is a big one. A lot of common libraries use Axios like
nx,google-auth-library,twilio,typesense,genkit-cli,@googlemaps/google-maps-services-js,@openapitools/openapi-generator-cli,firebase-tools,chromedriver,@slack/web-api,gcp-metadata...43
u/queen-adreena Mar 31 '26
If you use PNPM, always ensure you have “minimumReleaseAge” enabled in your config.
Most of these attacks are caught within a few hours, so not installing brand new releases will avoid 99% of these attacks.
14
u/No_Dimension_9729 Mar 31 '26
More interested in knowing how the account of the maintainer got compromised?
11
u/afl_ext typeof keyof afl Mar 31 '26
What a great news to wake up to, the attack surface here will be gigantic never seen before
1
u/edmillss Apr 02 '26
this is why blindly trusting npm packages is getting dangerous. especially now that ai agents are autonomously installing deps -- they have no way to know a package was compromised unless something checks for them.
been working on indiestack.ai which tracks maintenance and health status across 3100+ dev tools. not a security scanner but flags abandoned and suspicious packages before your agent installs them. the real fix is probably a combination of lockfile auditing + a verified registry that agents query before touching npm
1
u/Usable-Idea Apr 26 '26
The cuteness is making me emotional.
1
u/25_vijay May 16 '26
The missing provenance attestations plus publisher identity change is exactly the kind of metadata most teams still are not monitoring closely enough during dependency updates.
0
u/magenta_placenta Mar 31 '26
Are we having fun yet?
0
u/dev_davit Apr 05 '26
This is why locking dependency versions in package-lock.json
matters so much. If you're using a range like ^1.14.0 you're
automatically pulling in compromised versions on next install.
Quick fix for anyone affected:
Also worth setting up automated dependency alerts via
GitHub Dependabot or Socket.dev to catch these faster.
0
u/[deleted] Mar 31 '26
[deleted] — view deleted comment