Malicious Code Injection in tomi-sego22-breki: npm Package Vulnerability
Summary
MAL-2025-75735: Malicious code in tomi-sego22-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 'tomi-sego22-breki' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. This functionality, while intended for legitimate use, has been exploited to create malicious scripts that can compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability arises from the presence of malicious code within the 'tomi-sego22-breki' package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, thereby inflating developer reputation scores for token rewards. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential security risks for developers using affected packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tomi-sego22-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 manually inspect your package.json file for any unauthorized changes made by the malicious code. Additionally, consider using npm audit to identify and address vulnerabilities in your dependencies.
Conclusion
The 'tomi-sego22-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 tomi-sego22-breki →
FAQ
The 'tomi-sego22-breki' package is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation of derivative packages.
The malicious code can alter your package.json file, remove private flags, and publish unauthorized package variants, potentially compromising your project's integrity.
You should remove the 'tomi-sego22-breki' package from your project immediately and check for any unauthorized changes in your package.json file.
You can use tools like npm audit to scan your project for vulnerabilities. Additionally, Vulert can monitor your package-lock.json for real-time alerts on open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.