Malicious Code Injection in uinsu-ls-dinabu: A Threat to npm Packages
Summary
MAL-2025-170059: Malicious code in uinsu-ls-dinabu (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 package 'uinsu-ls-dinabu' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This campaign has been known to flood the npm registry with packages that contain malicious scripts designed to manipulate package metadata and inflate developer reputation scores. The primary functionality of this package is to serve as a conduit for these malicious activities, which can lead to significant security risks for developers and users alike.
Vulnerability Detail
The vulnerability in 'uinsu-ls-dinabu' originates from its design to include autopublish scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, which allows the package to continuously republish variants and pollute the npm registry. The ramifications of this vulnerability include the potential for developers to unknowingly install compromised packages, leading to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uinsu-ls-dinabu
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 'uinsu-ls-dinabu' package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and reputation of packages before installation.
Conclusion
The 'uinsu-ls-dinabu' package poses a significant security threat due to its malicious code and the potential for widespread impact on the npm ecosystem. It is crucial for developers to take immediate action by removing this package and ensuring their dependencies are secure. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for uinsu-ls-dinabu →
FAQ
The main risk is the potential for malicious code execution that can compromise your project and lead to security vulnerabilities.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately and update your dependencies to ensure your project is secure.
Yes, you should look for reputable packages that offer similar functionality but do not have known vulnerabilities.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and only install packages from trusted sources.