Malicious Code Injection in educational_firefly_scarlet-6: npm Package Vulnerability
Summary
MAL-2025-101879: Malicious code in educational_firefly_scarlet-6 (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 educational_firefly_scarlet-6 package is part of the npm ecosystem, typically used for educational purposes. However, it has been compromised and is now associated with a malicious campaign aimed at inflating developer reputation scores through the tea.xyz token reward system. This package is designed to automatically generate and publish derivative packages, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the educational_firefly_scarlet-6 package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The primary risk is that it allows unauthorized modifications to the package, leading to potential exploitation and misuse of the npm registry. The malicious payload continuously republishes variants, further exacerbating the issue.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall educational_firefly_scarlet-6
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 educational_firefly_scarlet-6 package from your project by executing: npm uninstall educational_firefly_scarlet-6. This will prevent any malicious code from executing until a secure version is released.
Conclusion
The educational_firefly_scarlet-6 package has been identified as containing malicious code that poses a significant risk to developers and their projects. It is crucial to take immediate action by updating or removing the package to safeguard your applications. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for educational_firefly_scarlet-6 →
FAQ
It is an npm package that was initially intended for educational purposes but has been compromised with malicious code.
The malicious code can modify your package.json, remove private flags, and publish unauthorized versions, potentially leading to security vulnerabilities.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You can uninstall the package as a temporary measure to prevent any malicious actions until a secure version is available.
Regularly monitor your dependencies and use tools like Vulert to stay informed about vulnerabilities in your open-source packages.