Malicious Code Injection in spectacular_snake_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-96714: Malicious code in spectacular_snake_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 package 'spectacular_snake_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages that can harm developers' reputations and the integrity of the ecosystem.
Vulnerability Detail
The vulnerability in 'spectacular_snake_z3n' originates from its association with the tea.xyz token reward campaign. This campaign deploys autopublish scripts that manipulate the package.json file, removing private flags and altering version numbers. The scripts generate random package names and continuously republish variants, leading to pollution of the npm registry. This not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall spectacular_snake_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 'spectacular_snake_z3n' and any other packages associated with the tea.xyz token reward campaign. Additionally, consider using npm audit to identify and address vulnerabilities in your project's dependencies.
Conclusion
The 'spectacular_snake_z3n' package poses a significant threat to the npm ecosystem due to its malicious code that manipulates package metadata and floods the registry. It is essential for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for spectacular_snake_z3n →
FAQ
'spectacular_snake_z3n' is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
Using 'spectacular_snake_z3n' can lead to the introduction of malicious code into your project, compromising its security and integrity.
You should remove 'spectacular_snake_z3n' from your project immediately and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.