Malicious Code Injection in dominant_python_0xrequest Package
Summary
MAL-2025-101701: Malicious code in dominant_python_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 dominant_python_0xrequest package is part of the npm ecosystem, often utilized in JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous derivative packages. This package, like others in the campaign, is designed to manipulate npm's publishing system, potentially compromising the integrity of applications that depend on it.
Vulnerability Detail
This vulnerability stems from the presence of malicious code within the dominant_python_0xrequest package. The code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only inflates developer reputation scores for token rewards but also leads to the continuous republishing of variants, polluting the npm registry. The ramifications include potential exposure of sensitive data, unauthorized access to systems, and the degradation of the npm ecosystem's reliability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dominant_python_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 prevent the installation of this package by using npm's package-lock.json to monitor dependencies. Additionally, consider using the following command to audit your project for vulnerabilities: npm audit.
Conclusion
The dominant_python_0xrequest package poses a significant risk due to its malicious code designed to manipulate npm's publishing system. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for dominant_python_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, which has been identified to contain malicious code.
The malicious code modifies your package.json, potentially exposing sensitive information and degrading the integrity of your application.
You should remove the package immediately and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.