Malicious Code Injection in representative_scorpion_z3n Package
Summary
MAL-2025-96302: Malicious code in representative_scorpion_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
The representative_scorpion_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages. It aims to inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability in the representative_scorpion_z3n package stems from its inclusion in a malicious campaign that floods the npm registry with derivative packages. The malicious code modifies the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers' reputations and the integrity of their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall representative_scorpion_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 workaround, you can monitor your package dependencies using tools like Vulert. By utilizing Vulert, you can check if your application is affected by this vulnerability without needing access to the code or installation. You can use the Vulert playground at https://vulert.com/scanner to analyze your package-lock.json file for vulnerabilities.
Conclusion
The representative_scorpion_z3n package has been identified as containing malicious code that poses a significant risk to developers and the npm ecosystem. Immediate action is required to remove this package and safeguard your applications. Utilizing tools like Vulert can help you stay informed about potential vulnerabilities in your project.
See every vulnerability recorded for representative_scorpion_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your application by introducing malicious code.
You should uninstall the representative_scorpion_z3n package immediately to mitigate any risks associated with its use.
Currently, there is no patched version available for the representative_scorpion_z3n package. Complete removal is recommended.
You can use Vulert to monitor your project for open-source vulnerabilities in real-time by analyzing your package-lock.json file.