Malicious Code Injection in sadboy-app: A Threat to npm Ecosystem
Summary
MAL-2025-98328: Malicious code in sadboy-app (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 sadboy-app package is part of the npm ecosystem, which is widely used for managing JavaScript packages. It is designed to facilitate the development and distribution of applications. However, this package has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to potential security risks for developers and users alike.
Vulnerability Detail
The vulnerability in sadboy-app originates from its association with the tea.xyz token reward campaign, which has been flooding the npm registry with malicious packages. These packages contain scripts that automatically modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior can lead to the pollution of the npm registry and compromise the integrity of the software supply chain, potentially allowing attackers to execute arbitrary code or distribute malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sadboy-app
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 measure, avoid using the sadboy-app package and consider using alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for any unauthorized changes to package.json.
Conclusion
The sadboy-app package poses a significant security risk due to its malicious code injection capabilities. Developers should take immediate action to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your software dependencies.
See every vulnerability recorded for sadboy-app →
FAQ
Sadboy-app is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
The vulnerability can lead to unauthorized changes in your project's dependencies, potentially allowing malicious code to be executed.
You should uninstall the sadboy-app package immediately and review your project's dependencies for any other malicious packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
Yes, consider using other reputable packages that offer similar functionalities without the associated risks of malicious code.