Malicious Code Injection in nasty_tahr_0xrequest Package
Summary
MAL-2025-106191: Malicious code in nasty_tahr_0xrequest (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 nasty_tahr_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores in exchange for token rewards. However, it has been identified as containing malicious code that compromises its integrity.
Vulnerability Detail
The vulnerability in the nasty_tahr_0xrequest package stems from its inclusion in a campaign that floods the npm registry with malicious packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to pollution of the npm registry. This can result in significant ramifications, including the potential for developers to unknowingly install compromised packages, which can lead to further security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasty_tahr_0xrequest
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 nasty_tahr_0xrequest package and instead utilize alternative packages that provide similar functionality without the associated risks. You can uninstall the package using the following command: npm uninstall nasty_tahr_0xrequest.
Conclusion
The nasty_tahr_0xrequest package poses a significant security risk due to its malicious code that alters package metadata and pollutes the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain application security.
See every vulnerability recorded for nasty_tahr_0xrequest →
FAQ
The nasty_tahr_0xrequest package is an npm package associated with a token reward campaign that has been identified to contain malicious code.
The malicious code modifies your package.json file, potentially leading to the installation of compromised packages and pollution of the npm registry.
You should uninstall the nasty_tahr_0xrequest package immediately to mitigate any potential risks.
Currently, there is no patched version available for the nasty_tahr_0xrequest package, so it is best to remove it entirely.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.