Malicious Code Injection in tealove-darknest49: A Threat to npm Users
Summary
MAL-2025-168307: Malicious code in tealove-darknest49 (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
tealove-darknest49 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the distribution of token rewards through various scripts. However, it has been identified as containing malicious code that compromises the integrity of the npm registry by generating and publishing derivative packages with altered metadata.
Vulnerability Detail
The vulnerability in tealove-darknest49 originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to pollution of the npm registry and potential security risks for users who inadvertently install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tealove-darknest49
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, avoid using the tealove-darknest49 package and monitor your dependencies for any similar malicious packages. You can also use tools like Vulert to check your package-lock.json for vulnerabilities.
Conclusion
The tealove-darknest49 package poses a significant risk due to its malicious code that alters package metadata and pollutes the npm registry. Users are advised to uninstall the package and monitor their dependencies for similar threats. Utilizing tools like Vulert can enhance your security posture against such vulnerabilities.
See every vulnerability recorded for tealove-darknest49 →
FAQ
tealove-darknest49 is an npm package involved in a token reward campaign that has been identified as containing malicious code.
The vulnerability can lead to the installation of compromised packages, which may alter your project's dependencies and introduce security risks.
You should uninstall the package immediately using npm uninstall tealove-darknest49 and check for any other affected packages.
Yes, regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in your package-lock.json.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check for vulnerabilities without any installation by using the Vulert playground.