Malicious Code Injection in common_marmoset_0xrequest: A Threat to npm Packages
Summary
MAL-2025-100721: Malicious code in common_marmoset_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 'common_marmoset_0xrequest' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary functionality of this package is to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, its malicious nature poses significant risks to developers and users alike.
Vulnerability Detail
The vulnerability stems from the malicious code embedded within the 'common_marmoset_0xrequest' package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to continuously republish these variants, polluting the npm registry and potentially compromising the integrity of other packages. This behavior can lead to security risks, including the exposure of sensitive data and the installation of untrusted code in applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall common_marmoset_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 'common_marmoset_0xrequest' package from your project by executing 'npm uninstall common_marmoset_0xrequest'. Additionally, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The 'common_marmoset_0xrequest' package poses a significant security risk due to its malicious code that modifies package metadata and repopulates the npm registry with potentially harmful variants. It is crucial for developers to take immediate action by updating or removing this package and to utilize tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for common_marmoset_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, known for flooding the npm registry with malicious packages.
The vulnerability can lead to the installation of untrusted code, potentially compromising your application's security and integrity.
You should uninstall the package immediately and check for any other affected packages in your project.
Yes, you can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.