Malicious Code Injection in sari-nasi8-breki Package - npm Vulnerability
Summary
MAL-2025-75398: Malicious code in sari-nasi8-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 sari-nasi8-breki package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that modifies package metadata and floods the npm registry with random package names.
Vulnerability Detail
The vulnerability originates from the malicious intent behind the sari-nasi8-breki package, which includes scripts that alter the package.json file by removing private flags and changing version numbers. This allows the package to continuously republish variants with randomized names, polluting the npm registry. The ramifications include potential security risks for developers who unknowingly use this package, as it could lead to reputation damage and misuse of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sari-nasi8-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, avoid using the sari-nasi8-breki package and monitor your dependencies for any malicious activity. You can also use tools like Vulert to check your package-lock.json for vulnerabilities without requiring code access or installation.
Conclusion
The sari-nasi8-breki package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for sari-nasi8-breki →
FAQ
The sari-nasi8-breki package is an npm package associated with a token reward campaign that has been identified as containing malicious code.
The malicious code modifies the package.json file to remove private flags and changes version numbers, allowing it to republish variants and pollute the npm registry.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you have installed the sari-nasi8-breki package, you should uninstall it immediately using 'npm uninstall sari-nasi8-breki'.
Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just the package-lock.json file.