Malicious Code Injection in musical_tern_0xrequest Package
Summary
MAL-2025-106054: Malicious code in musical_tern_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 musical_tern_0xrequest package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that aims to manipulate the npm registry by flooding it with derivative packages, thereby inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the musical_tern_0xrequest package stems from its association with a malicious campaign that modifies the package.json file to remove private flags and change version numbers. It generates random package names and continuously republishes variants, which pollutes the npm registry. This can lead to security risks, including the potential for developers to unknowingly use compromised packages, which may contain harmful code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall musical_tern_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 avoid using the musical_tern_0xrequest package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The musical_tern_0xrequest package poses a significant security risk due to its malicious code injection. It is crucial for developers to be aware of such vulnerabilities and take proactive measures to secure their applications by removing affected packages and utilizing monitoring tools like Vulert.
See every vulnerability recorded for musical_tern_0xrequest →
FAQ
musical_tern_0xrequest 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 inclusion of malicious code in your application, potentially compromising its security and integrity.
You should uninstall the musical_tern_0xrequest package immediately and check for any other affected packages in your project.
Yes, tools like Vulert can monitor your package-lock.json file to alert you in real-time for open-source vulnerabilities.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without any signup.