Malicious Code Injection in common_ferret_0xrequest Package
Summary
MAL-2025-100717: Malicious code in common_ferret_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 common_ferret_0xrequest package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing features to generate and distribute harmful code. The vulnerability stems from its association with scripts designed to manipulate package metadata and inflate developer reputation scores through deceptive practices.
Vulnerability Detail
The vulnerability in common_ferret_0xrequest is characterized by the presence of malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is part of a broader scheme associated with the tea.xyz token reward campaign, which aims to flood the npm registry with derivative packages. The ramifications of this vulnerability include potential exposure of sensitive data, pollution of the npm registry, and the risk of developers unknowingly incorporating malicious code into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall common_ferret_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 workaround, you can avoid using the common_ferret_0xrequest package altogether. If it is a dependency of another package, consider removing that package or replacing it with a more secure alternative.
Conclusion
The common_ferret_0xrequest package is associated with a serious vulnerability that can compromise the integrity of your projects. It is crucial to remove this package and monitor your dependencies for any potential threats. Utilizing tools like Vulert can help you stay informed about vulnerabilities in your open-source software.
See every vulnerability recorded for common_ferret_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry and inflate developer reputation scores.
The vulnerability can lead to the inclusion of malicious code in your project, potentially compromising security and functionality.
You should remove the common_ferret_0xrequest package from your project immediately and check for any other affected packages.
Yes, you can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.