Malicious Code Injection in sari-lengko14-ruro Package
Summary
MAL-2025-108363: Malicious code in sari-lengko14-ruro (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 sari-lengko14-ruro package is part of the npm ecosystem, primarily used for various JavaScript applications. This package has been identified as part of a malicious campaign that floods the npm registry with derivative packages, aimed at inflating developer reputation scores for token rewards. The package's functionality is compromised due to the presence of malicious scripts that manipulate its metadata.
Vulnerability Detail
The vulnerability originates from the package being part of a broader malicious campaign associated with the tea.xyz token reward initiative. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses a risk 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 sari-lengko14-ruro
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 sari-lengko14-ruro package and consider using alternative packages that provide similar functionality without the risk of malicious code.
Conclusion
The sari-lengko14-ruro package is compromised by malicious code that alters its metadata and repopulates the npm registry with harmful variants. It is crucial for developers to remove this package and monitor their applications for any potential impacts. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for sari-lengko14-ruro →
FAQ
sari-lengko14-ruro is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
The malicious code modifies your package.json file and can lead to the installation of compromised packages, potentially exposing your application to security vulnerabilities.
You should uninstall the sari-lengko14-ruro package immediately and monitor your application for any unusual behavior.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just package-lock.json. You can check if your application is affected by visiting the Vulert playground.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about known vulnerabilities in the packages you use.