NPM Nightmare: Popular Packages Turn Cryptomining Culprits in Sneaky Supply Chain Attack
In a twist worthy of a cybersecurity sitcom, the popular npm packages @rspack/core, @rspack/cli, and Vant were hijacked, turning unwitting users into Monero miners. These cryptomining antics were foiled by diligent researchers, leaving developers scrambling to patch their packages and issue heartfelt apologies to their now slightly warmer community.

Hot Take:
Well, it seems like even JavaScript bundlers and UI libraries can’t escape the allure of cryptocurrency bling. Who knew the npm package you downloaded for your latest mobile app might just be moonlighting as a Monero miner? Next time you see your CPU fan going into overdrive, it might not be your video editing software — it could just be a sneaky npm package making a little extra cash on the side!
Key Points:
- Three npm packages — @rspack/core, @rspack/cli, and Vant — were compromised, allowing malicious versions to install cryptominers.
- The attack was recognized by Sonatype and Socket researchers, who identified the exploitation of stolen npm account tokens.
- The malware executed using npm’s postinstall script, fetching instructions from an external server and mining Monero cryptocurrency.
- Compromised package versions were swiftly addressed with new, clean releases after the breaches were discovered.
- This incident adds to a growing list of supply chain attacks targeting cryptocurrency through software vulnerabilities.