Malicious Code Injection in willowy_swallow_z3n: A Threat to npm Packages
Summary
MAL-2025-97383: Malicious code in willowy_swallow_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 'willowy_swallow_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. Its primary functionality is to serve as a token reward mechanism, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in 'willowy_swallow_z3n' stems from its inclusion in a malicious campaign that generates and publishes derivative packages with randomized names. This is achieved through scripts that modify the package.json file, removing private flags, altering version numbers, and continuously republishing variants. The malicious payload can lead to pollution of the npm registry, potentially damaging the reputation of legitimate developers and affecting the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall willowy_swallow_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 workaround, you can prevent the installation of this package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include 'willowy_swallow_z3n' in its dependencies. You can also use tools like Vulert to monitor for vulnerabilities in your dependencies without requiring code access. For example, you can check your application against this vulnerability using the Vulert playground at https://vulert.com/scanner.
Conclusion
The 'willowy_swallow_z3n' package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. Immediate removal of this package is essential to protect your application and maintain the integrity of your development environment.
See every vulnerability recorded for willowy_swallow_z3n →
FAQ
It is an npm package that is part of a malicious campaign designed to manipulate package metadata and inflate developer reputation scores.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your application's dependencies.
You should remove the 'willowy_swallow_z3n' package from your project immediately to mitigate the risk.
Currently, there is no patched version available for 'willowy_swallow_z3n'. The best course of action is to remove it.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access.