Malicious Code Injection in amused_snipe_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-98617: Malicious code in amused_snipe_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 'amused_snipe_z3n' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only clutters the npm registry but also poses significant security risks to developers and users relying on these packages.
Vulnerability Detail
The vulnerability in 'amused_snipe_z3n' involves malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This malicious payload is part of a broader scheme to pollute the npm registry with unwanted packages, potentially leading to security breaches and misuse of developer credentials. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploited npm's publishing capabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amused_snipe_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 this package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your npm packages using tools like Vulert to monitor for vulnerabilities.
Conclusion
The 'amused_snipe_z3n' package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is essential to remove this package from your projects and monitor your dependencies for vulnerabilities to maintain the security of your applications.
See every vulnerability recorded for amused_snipe_z3n →
FAQ
'amused_snipe_z3n' is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the pollution of your project's dependencies, potentially introducing security risks and making your application susceptible to attacks.
You should uninstall 'amused_snipe_z3n' immediately and check for any dependencies that may be affected. Use 'npm uninstall amused_snipe_z3n' to remove it.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground without any signup.
Yes, you should look for reputable packages that provide similar functionality without the associated risks. Always verify the credibility of packages before installation.