Malicious Code Injection in prime_marten_0xrequest Package
Summary
MAL-2025-107267: Malicious code in prime_marten_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 prime_marten_0xrequest package is part of the npm ecosystem, often used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is designed to inflate developer reputation scores through automated publishing scripts, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the prime_marten_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which can lead to the proliferation of unwanted and potentially harmful packages in the npm registry. The ramifications include compromised developer reputations and the potential for malicious actors to exploit these packages for nefarious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall prime_marten_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 remove the prime_marten_0xrequest package from your project by executing the command: 'npm uninstall prime_marten_0xrequest'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The prime_marten_0xrequest package poses a significant risk due to its embedded malicious code, which can compromise your project's integrity and inflate developer reputation scores. It is crucial to monitor and update your dependencies regularly to safeguard against such vulnerabilities.
See every vulnerability recorded for prime_marten_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through automated publishing.
The malicious code modifies your package.json file, potentially leading to the publication of unwanted packages and compromising your project's integrity.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time by analyzing your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.
If an immediate update is not possible, consider removing the package as a temporary measure to mitigate risks.