NPM Nightmare: Monero Miner Hijack Highlights Open Source Vulnerabilities
Attackers hijacked npm tokens and compromised popular packages like @rspack/core, injecting malicious code to deploy Monero miners. Sonatype’s automated detection swiftly blocked these threats. Patches are now available, but with 98.5% of open-source malware targeting npmjs.com, it’s no laughing matter—keep your software updated and your security tight!

Hot Take:
Oh, npm! Just when you thought it was safe to go back in the package waters, along comes a hijacked token to remind us that not even the most popular JavaScript libraries are safe from sneaky cryptocurrency miners. It’s like a digital version of finding out your favorite coffee shop has been serving decaf all along—disappointing and headache-inducing.
Key Points:
- Attackers used a hijacked npm token to compromise popular packages @rspack/core, @rspack/cli, and “vant.”
- Malicious code injected into these packages deployed the XMRig Monero cryptocurrency miner.
- Sonatype’s automated systems blocked these malicious versions quickly using the Nexus Repository Firewall.
- Rspack and Vant released clean updates and improved security measures post-breach.
- Sonatype’s report notes that 98.5% of open-source malware targets npmjs.com.
Already a member? Log in here