Malicious Code Injection in sole_constrictor_z3n Package
Summary
MAL-2025-90709: Malicious code in sole_constrictor_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 sole_constrictor_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate automated publishing of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity and security.
Vulnerability Detail
The vulnerability in the sole_constrictor_z3n package originates from its involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, leading to potential security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sole_constrictor_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 measure, you can avoid using the sole_constrictor_z3n package and its derivatives. Additionally, consider using npm audit to identify and address vulnerabilities in your project dependencies.
Conclusion
The sole_constrictor_z3n package has been identified as containing malicious code that compromises the security of the npm ecosystem. It is crucial for developers to remove this package from their projects and stay vigilant by monitoring their dependencies for vulnerabilities.
See every vulnerability recorded for sole_constrictor_z3n →
FAQ
The sole_constrictor_z3n package is an npm package associated with a token reward campaign that automates the publishing of derivative packages.
The malicious code can modify your package.json file, remove private flags, and generate random package names, leading to potential security risks and pollution of the npm registry.
If you have installed the sole_constrictor_z3n package, it is recommended to remove it immediately and check for any other affected packages in your project.
You can use tools like npm audit to check for vulnerabilities in your dependencies. Additionally, Vulert can monitor your package-lock.json for real-time alerts on open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.