Malicious Code Injection in narrow_snake_0xrequest: A Threat to npm Packages
Summary
MAL-2025-106184: Malicious code in narrow_snake_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 package narrow_snake_0xrequest is part of a series of npm packages that have been linked to the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. This behavior not only inflates developer reputation scores but also poses significant risks to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in narrow_snake_0xrequest stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This can lead to a compromised development environment, where developers may inadvertently use malicious packages, risking exposure to further vulnerabilities and attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall narrow_snake_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 narrow_snake_0xrequest package altogether. Review your package-lock.json file to identify any dependencies that may rely on it and consider replacing them with safer alternatives.
Conclusion
The narrow_snake_0xrequest package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is essential to remove this package and monitor your dependencies for vulnerabilities to maintain the security of your projects. Utilizing tools like Vulert can aid in real-time monitoring and alerting for any open-source vulnerabilities.
See every vulnerability recorded for narrow_snake_0xrequest →
FAQ
narrow_snake_0xrequest is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the introduction of malicious code into your project, potentially compromising your application's security and integrity.
You should immediately remove the narrow_snake_0xrequest package from your project and review your dependencies for any related vulnerabilities.
You can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, tools like Vulert can help you monitor and alert for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.