Malicious Code Injection in Racial Rattlesnake 0xRequest Package
Summary
MAL-2025-107689: Malicious code in racial_rattlesnake_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 'racial_rattlesnake_0xrequest' package is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to automate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores. The package's functionality is compromised by malicious scripts that manipulate its metadata.
Vulnerability Detail
The vulnerability originates from the package's involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names. This leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of projects that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall racial_rattlesnake_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, avoid using the 'racial_rattlesnake_0xrequest' package and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'racial_rattlesnake_0xrequest' package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial to remove this package from your projects and monitor for any dependencies that may be affected. Utilizing tools like Vulert can help in identifying vulnerabilities in your software.
See every vulnerability recorded for racial_rattlesnake_0xrequest →
FAQ
It is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your application and its dependencies.
You should uninstall the package immediately and check for any dependencies that may rely on it. Consider using alternative packages.
Currently, there is no patched version available for the 'racial_rattlesnake_0xrequest' package. It is recommended to remove it from your project.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner without any signup.