Malicious Code Injection in nina-rawon91-breki: A Threat to npm Users
Summary
MAL-2025-74624: Malicious code in nina-rawon91-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 'nina-rawon91-breki' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by creating and publishing numerous derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for rewards associated with the tea protocol. The package's functionality revolves around automating the publication process, which has now been compromised due to malicious intent.
Vulnerability Detail
The vulnerability stems from a malicious payload embedded within the 'nina-rawon91-breki' package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names, often themed around Indonesian culture. The result is a continuous republishing of these variants, which pollutes the npm registry and can lead to significant reputational damage for developers. The origin of this issue is linked to the broader exploitation of npm packages for token rewards, which has led to an influx of malicious packages in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nina-rawon91-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 prevent the installation of this malicious package by using npm's package-lock.json file to monitor and restrict the use of vulnerable packages. Additionally, consider using tools like Vulert to monitor your dependencies for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The 'nina-rawon91-breki' package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is essential for developers to be vigilant, remove any affected packages, and utilize tools like Vulert to safeguard their projects against such vulnerabilities.
See every vulnerability recorded for nina-rawon91-breki →
FAQ
It is an npm package that has been identified as malicious, designed to manipulate the npm registry for token rewards.
The vulnerability can lead to the pollution of the npm registry and may damage your project's reputation if the malicious package is included.
You should remove the 'nina-rawon91-breki' package immediately and monitor your project for any further vulnerabilities.
Yes, regularly update your dependencies, use tools like Vulert for monitoring, and review your package-lock.json file for any suspicious packages.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. It provides real-time alerts without requiring code access.