Malicious Code Injection in Roasted Nightingale Z3N Package
Summary
MAL-2025-108171: Malicious code in roasted_nightingale_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 'roasted_nightingale_z3n' package is part of the npm ecosystem, often utilized in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the tea.xyz token reward system. This package is known for its automatic publishing scripts that generate numerous derivative packages with randomized names, leading to potential pollution of the npm registry.
Vulnerability Detail
The vulnerability in the 'roasted_nightingale_z3n' package stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to continuously republish variants, thereby compromising the integrity of the npm registry and potentially affecting developers who rely on this package for legitimate purposes. The origin of this issue is linked to a broader campaign that exploits npm's publishing capabilities for nefarious gains.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall roasted_nightingale_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 the 'roasted_nightingale_z3n' package and replace it with a similar package that does not exhibit malicious behavior. Additionally, you can monitor your package-lock.json file for any unauthorized changes.
Conclusion
The 'roasted_nightingale_z3n' package poses a significant risk due to its malicious behavior aimed at manipulating npm's publishing system. It is crucial for developers to be vigilant, remove affected packages, and utilize monitoring tools like Vulert to safeguard their projects against such vulnerabilities.
See every vulnerability recorded for roasted_nightingale_z3n →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
The vulnerability can lead to unauthorized modifications in your project's dependencies, potentially compromising the security and integrity of your application.
You should remove the 'roasted_nightingale_z3n' package from your project and monitor for any updates or patches.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities by analyzing your package-lock.json file. You can also check your application against known vulnerabilities using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay updated on security advisories related to the packages you use.