Malicious Code Detected in narrow_nightingale-teagooddev: A Threat to npm Users
Summary
MAL-2025-106183: Malicious code in narrow_nightingale-teagooddev (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 narrow_nightingale-teagooddev is part of a series of npm packages associated with 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 a significant risk to users who may unknowingly install these malicious packages.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the narrow_nightingale-teagooddev package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The ramifications include potential exposure to untrusted code, pollution of the npm registry, and a compromised development environment.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall narrow_nightingale-teagooddev
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 avoid using the narrow_nightingale-teagooddev package and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The narrow_nightingale-teagooddev package poses a significant threat due to its malicious code designed to manipulate npm package publishing. Users are advised to remove this package and monitor their projects for vulnerabilities using tools like Vulert to ensure a secure development environment.
See every vulnerability recorded for narrow_nightingale-teagooddev →
FAQ
narrow_nightingale-teagooddev is an npm package linked to a token reward campaign that generates and publishes malicious packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your package-lock.json file for any vulnerabilities.
Uninstall the package immediately using 'npm uninstall narrow_nightingale-teagooddev' and check for any other affected packages.
Yes, using unverified or malicious npm packages can lead to security vulnerabilities, data breaches, and compromised systems.
Regularly audit your dependencies using tools like Vulert and stay updated on security advisories related to the packages you use.