Malicious Code Injection in surya-lengko2-breki: A Threat to npm Users
Summary
MAL-2025-75528: Malicious code in surya-lengko2-breki (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 'surya-lengko2-breki' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is linked to a token reward campaign that has been identified as malicious. It is designed to manipulate the npm registry by generating and publishing numerous derivative packages with random names, aimed at inflating developer reputation scores for token rewards. The presence of such malicious packages poses a significant risk to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in 'surya-lengko2-breki' originates from its involvement in a malicious campaign that modifies the package.json file to remove private flags and alters version numbers. This allows the package to continuously republish variants, polluting the npm registry with potentially harmful packages. The malicious payload can lead to unauthorized access, data leakage, and compromise the integrity of applications that depend on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall surya-lengko2-breki
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 'surya-lengko2-breki' package from your project by executing the command: 'npm uninstall surya-lengko2-breki'. This will prevent any potential exploitation until a secure version is available.
Conclusion
The 'surya-lengko2-breki' package poses a significant security risk due to its malicious code that alters package files and repackages software. It is crucial for developers to take immediate action by updating or uninstalling the package to safeguard their applications. Utilizing tools like Vulert can enhance security by providing real-time vulnerability alerts.
See every vulnerability recorded for surya-lengko2-breki →
FAQ
The vulnerability involves malicious code that modifies package.json files and repackages the software, leading to potential security risks.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
If an immediate update is not possible, consider uninstalling the package as a temporary measure to mitigate risks.
Yes, the malicious payload can lead to unauthorized access and data leakage, compromising the integrity of applications.
Vulert monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file, providing real-time insights.