Malicious Code Injection in mutr-sds-bastpaa Package
Summary
MAL-2025-161156: Malicious code in mutr-sds-bastpaa (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 mutr-sds-bastpaa package is part of the npm ecosystem, often used in JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with various packages. This package, like others in the campaign, is designed to manipulate developer reputation scores through automated publishing scripts, making it susceptible to malicious exploitation.
Vulnerability Detail
The vulnerability in the mutr-sds-bastpaa package arises from its inclusion in a malicious campaign that modifies package.json files. The malicious code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This not only pollutes the npm registry but also poses significant risks to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mutr-sds-bastpaa
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 mutr-sds-bastpaa package from your project by executing the command: 'npm uninstall mutr-sds-bastpaa'. This will prevent any malicious code from executing in your application until a secure version is available.
Conclusion
The mutr-sds-bastpaa package contains a serious vulnerability due to its association with a malicious campaign that modifies package files. It is crucial to update or remove this package to safeguard your application from potential security threats. Utilizing tools like Vulert can aid in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for mutr-sds-bastpaa →
FAQ
The mutr-sds-bastpaa package is an npm package associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores through automated publishing.
The vulnerability can lead to the modification of your package.json file, potentially exposing your application to security risks and affecting its integrity.
You can use Vulert, a tool that monitors open-source vulnerabilities in your software. By analyzing your package-lock.json file, it alerts you in real-time about any vulnerabilities.
Regularly updating your dependencies and using tools like Vulert to monitor vulnerabilities can help prevent similar issues in the future.
If an immediate update is not possible, consider removing the package from your project as a temporary measure until a secure version is available.