Malicious Code Vulnerability in selected_silkworm_z3n Package
Summary
MAL-2025-108505: Malicious code in selected_silkworm_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 selected_silkworm_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 generation and publication 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.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially harming developers who rely on the integrity of the npm ecosystem. The malicious code is part of a broader scheme to exploit the npm registry for token rewards.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall selected_silkworm_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 remove the selected_silkworm_z3n package from your project by executing: npm uninstall selected_silkworm_z3n. This will prevent any malicious code from executing until a fixed version is available.
Conclusion
The selected_silkworm_z3n package contains a significant vulnerability due to malicious code that alters package metadata and republishing behavior. It is crucial to address this issue by updating or removing the package to maintain the integrity of your project.
See every vulnerability recorded for selected_silkworm_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json, removes private flags, and continuously republishes variants, potentially harming your project's integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You can uninstall the selected_silkworm_z3n package as a temporary measure to prevent any malicious activity.
Detailed information can be found in the vulnerability report on GitHub or through security advisories related to npm packages.