Malicious Code Injection in simple_sparrow_z3n: A Threat to npm Packages
Summary
MAL-2025-90505: Malicious code in simple_sparrow_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
simple_sparrow_z3n is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is designed to manipulate package metadata and publish derivative packages with randomized names, which can lead to reputation inflation for developers involved in the tea.xyz token reward scheme. The malicious behavior of this package poses a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in simple_sparrow_z3n stems from its inclusion in a malicious campaign that utilizes scripts to modify package.json files. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only affects the reputation of legitimate developers but also compromises the security of applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall simple_sparrow_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 lock your dependencies to specific versions that do not include simple_sparrow_z3n. This can be done by modifying your package.json file to exclude this package or by using npm shrinkwrap to lock down your dependency tree.
Conclusion
The simple_sparrow_z3n package poses a significant risk due to its malicious code that modifies package metadata and repopulates the npm registry with harmful variants. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the security of their applications.
See every vulnerability recorded for simple_sparrow_z3n →
FAQ
simple_sparrow_z3n is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the injection of malicious code into your application, compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall simple_sparrow_z3n' and check your application for any potential impacts.
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 any signup.