Malicious Code Injection in small_aphid_z3n: A Threat to npm Packages
Summary
MAL-2025-90695: Malicious code in small_aphid_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 small_aphid_z3n is part of the npm ecosystem, which is widely used for JavaScript package management. It is often utilized in various applications to enhance functionality through reusable code. However, this package has been identified as part of a malicious campaign that aims to manipulate the npm registry by creating and publishing derivative packages with harmful scripts.
Vulnerability Detail
The vulnerability in small_aphid_z3n stems from its association with a malicious campaign that floods the npm registry with fake packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, thereby inflating developer reputation scores for token rewards. This can lead to significant pollution of the npm registry, making it difficult for developers to find legitimate packages and potentially introducing security risks into applications that depend on these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall small_aphid_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 small_aphid_z3n package from your project until a secure version is released. You can do this by executing: npm uninstall small_aphid_z3n. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The small_aphid_z3n package poses a significant risk due to its malicious code that manipulates the npm registry. It is crucial for developers to stay vigilant, update their packages regularly, and utilize monitoring tools like Vulert to safeguard their applications from such vulnerabilities.
See every vulnerability recorded for small_aphid_z3n →
FAQ
small_aphid_z3n is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
This vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and functionality.
You should uninstall the package immediately and monitor for any updates or patches that may address the vulnerability.
You can use tools like Vulert, which allows you to monitor 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.