Malicious Code Injection in melodic_basilisk_0xrequest Package
Summary
MAL-2025-105770: Malicious code in melodic_basilisk_0xrequest (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 melodic_basilisk_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate various functionalities related to token rewards but has been compromised to include malicious code. The package's primary attributes include its ability to generate and publish derivative packages, which are intended to inflate developer reputation scores for token rewards. However, its vulnerability to malicious exploitation poses significant risks to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the melodic_basilisk_0xrequest package arises from the inclusion of malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This behavior not only compromises the security of the affected systems but also undermines the trustworthiness of the npm ecosystem, potentially affecting other packages and users relying on npm for secure software distribution.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall melodic_basilisk_0xrequest
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 melodic_basilisk_0xrequest package from your project by executing the following command: npm uninstall melodic_basilisk_0xrequest. This will prevent the execution of any malicious code associated with the package until a fix is available.
Conclusion
The melodic_basilisk_0xrequest package contains a significant vulnerability due to malicious code that alters package configurations and affects the npm ecosystem. Users are advised to update or remove the package to safeguard their projects. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for melodic_basilisk_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to facilitate token rewards but has been compromised with malicious code.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to security vulnerabilities and pollution of the npm registry.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup at Vulert Scanner.
If no patched version is available, it is recommended to uninstall the package to prevent any potential security risks.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated to their latest versions.