Malicious Code Injection in rose-teadev Package: npm Vulnerability Overview
Summary
MAL-2025-108198: Malicious code in rose-teadev (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 rose-teadev package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the creation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. It is crucial for developers to be aware of the potential risks associated with using this package, as it has been identified to contain malicious code.
Vulnerability Detail
The vulnerability in the rose-teadev package originates from its involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. This can have serious ramifications, including the potential for developers to inadvertently use compromised packages, leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall rose-teadev
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 avoid using the rose-teadev package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project's dependencies using tools like Vulert, which can alert you to any open-source vulnerabilities in real-time.
Conclusion
The rose-teadev package has been identified as containing malicious code that can compromise the security of applications using it. Developers should take immediate action to remove this package and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software projects.
See every vulnerability recorded for rose-teadev →
FAQ
The rose-teadev package is part of the npm ecosystem and is linked to a token reward campaign that generates derivative packages.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should immediately remove the rose-teadev package from your project and monitor for any updates or patches.
Yes, Vulert allows you to monitor and alert for open-source vulnerabilities in your software using just the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.