Malicious Code Injection in safe_snake_0xrequest Package
Summary
MAL-2025-108335: Malicious code in safe_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 safe_snake_0xrequest package is part of the npm ecosystem, primarily used for various JavaScript applications. It is often utilized for its utility functions and ease of integration within projects. However, this package has been identified as part of a malicious campaign that exploits npm's publishing mechanism, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the safe_snake_0xrequest package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to automatically modify the package.json file, removing private flags and altering version numbers. This behavior not only compromises the integrity of the affected package but also pollutes the npm registry with potentially harmful variants, posing risks to developers who may unknowingly use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall safe_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 safe_snake_0xrequest package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The safe_snake_0xrequest package has been identified as containing malicious code that compromises the security of applications using it. It is crucial for developers to remove this package and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in open-source dependencies.
See every vulnerability recorded for safe_snake_0xrequest →
FAQ
The safe_snake_0xrequest package is an npm package used in JavaScript applications, but it has been identified as part of a malicious campaign.
This vulnerability can lead to the injection of malicious code into your project, potentially compromising its security and integrity.
You should remove the safe_snake_0xrequest package from your project immediately and monitor for any updates or patches.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.