Malicious Code Injection in corasn-notthedevs Package: A Threat to npm Users
Summary
MAL-2025-101007: Malicious code in corasn-notthedevs (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The corasn-notthedevs package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary functionality of this package is to facilitate token rewards, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the corasn-notthedevs package. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants to pollute the npm registry, potentially leading to reputation inflation for developers involved in the tea protocol token rewards. This poses significant risks, including the spread of malicious packages and the compromise of developer accounts.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall corasn-notthedevs
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can prevent the installation of the corasn-notthedevs package by using the following command to uninstall it: npm uninstall corasn-notthedevs. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The corasn-notthedevs package poses a significant threat due to its embedded malicious code that alters package metadata and republishing behavior. It is essential to take immediate action by uninstalling the package and monitoring your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for corasn-notthedevs →
FAQ
The corasn-notthedevs package is an npm package associated with the tea.xyz token reward campaign, which has been compromised to include malicious scripts.
The malicious code modifies your package.json file, removes private flags, and republishes variants, which can lead to reputation inflation and the spread of harmful packages.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed the corasn-notthedevs package, it is crucial to uninstall it immediately using the command: npm uninstall corasn-notthedevs.
Yes, Vulert provides a solution that uses your package-lock.json to monitor and alert you in real-time for open-source vulnerabilities in your software.