Malicious Code Injection in saku-ai-upsi: A Threat to npm Ecosystem
Summary
MAL-2025-165586: Malicious code in saku-ai-upsi (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
saku-ai-upsi is an npm package that is part of the tea.xyz token reward campaign. It is designed to facilitate token rewards through various functionalities. However, it has been compromised, leading to the introduction of malicious scripts that manipulate package metadata and flood the npm registry with derivative packages. This vulnerability poses a significant risk to developers relying on this package for legitimate purposes.
Vulnerability Detail
The vulnerability in saku-ai-upsi originates from its association with a malicious campaign that aims to inflate developer reputation scores for token rewards. The package contains scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This results in the continuous republishing of variants, which pollutes the npm registry and can lead to security risks for users who inadvertently install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall saku-ai-upsi
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 saku-ai-upsi package from your project by executing the command: npm uninstall saku-ai-upsi. This will prevent any malicious code from executing until a patched version is available.
Conclusion
The saku-ai-upsi package has been compromised, leading to significant security risks for developers. It is essential to take immediate action by updating or removing the package to safeguard your projects. Utilizing tools like Vulert can help in monitoring and alerting for such vulnerabilities in real-time.
See every vulnerability recorded for saku-ai-upsi →
FAQ
The vulnerability involves malicious code that modifies package metadata and floods the npm registry with unwanted packages.
You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed saku-ai-upsi, it is recommended to uninstall the package and check for any updates or patches.
While specific exploits have not been detailed, the malicious behavior of the package can lead to security breaches and reputation damage.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay updated on security advisories related to your packages.