Malicious Code Injection in divine_silkworm_z3n Package
Summary
MAL-2025-101683: Malicious code in divine_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 divine_silkworm_z3n package is a part of the npm ecosystem, which is widely used for JavaScript development. This package has been identified as part of a malicious campaign associated with the tea.xyz token reward system. Its primary functionality is to facilitate the generation and publication of derivative packages, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the divine_silkworm_z3n package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The result is a proliferation of derivative packages that can clutter the npm registry and potentially harm developers' reputations. The malicious payload can lead to unauthorized access and misuse of the npm ecosystem, making it critical for developers to address this issue promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall divine_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 divine_silkworm_z3n package from your project by executing the following command: npm uninstall divine_silkworm_z3n. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The divine_silkworm_z3n package has been compromised with malicious code that poses significant risks to developers and the npm ecosystem. It is crucial to take immediate action by updating or removing the package to safeguard your projects. Utilizing tools like Vulert can help maintain the security of your dependencies.
See every vulnerability recorded for divine_silkworm_z3n →
FAQ
The divine_silkworm_z3n package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the creation of derivative packages.
The malicious code modifies your package.json file, potentially exposing your project to security risks and cluttering the npm registry with unwanted packages.
If you have installed the divine_silkworm_z3n package, it is recommended to uninstall it immediately and check for any updates or patches.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground.
Regularly update your packages, monitor for vulnerabilities using tools like Vulert, and review your package.json and package-lock.json files for any suspicious entries.