Malicious Code Injection in sporting_marten_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-109034: Malicious code in sporting_marten_z3n (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
sporting_marten_z3n is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package compromises the integrity of the npm ecosystem by introducing harmful scripts and altering package metadata.
Vulnerability Detail
The vulnerability in sporting_marten_z3n originates from its design to include autopublish scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only affects the reputation of legitimate developers but also poses security risks by potentially introducing harmful code into dependent projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sporting_marten_z3n
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 sporting_marten_z3n package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your npm packages using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The sporting_marten_z3n package poses a significant threat to the npm ecosystem due to its malicious code and the potential for widespread impact on projects that depend on it. It is crucial to take immediate action to remove this package and monitor your dependencies for vulnerabilities.
See every vulnerability recorded for sporting_marten_z3n →
FAQ
sporting_marten_z3n is an npm package linked to a malicious campaign that aims to inflate developer reputation scores through the automatic generation of derivative packages.
This vulnerability can compromise the integrity of your project by introducing malicious code and altering package metadata, which may lead to security risks and reputation damage.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any code access or installation.
If you have installed sporting_marten_z3n, it is recommended to uninstall it immediately using the command: npm uninstall sporting_marten_z3n.
Yes, you should look for alternative packages that provide similar functionality without the associated risks. Always ensure to audit your dependencies regularly.