Malicious Code Injection in wawan-rojak22-breki: A Threat to npm Packages
Summary
MAL-2025-76207: Malicious code in wawan-rojak22-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 wawan-rojak22-breki 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 compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in wawan-rojak22-breki originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially harming developers' reputations and the integrity of the ecosystem. The malicious scripts included in the package are designed to automate these processes, making it difficult for developers to detect the issue.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wawan-rojak22-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 workaround, you can monitor your package-lock.json file for any unauthorized changes and ensure that you do not install any packages from untrusted sources. Regularly audit your npm packages using 'npm audit' to identify and address vulnerabilities.
Conclusion
The wawan-rojak22-breki package poses a significant threat due to its malicious code that alters package metadata and pollutes the npm registry. It is crucial for developers to remain vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can safeguard their projects from such threats.
See every vulnerability recorded for wawan-rojak22-breki →
FAQ
wawan-rojak22-breki is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, removes private flags, and can lead to the pollution of the npm registry, affecting your project's integrity.
You can check your package-lock.json file for unauthorized changes and use tools like Vulert to monitor for vulnerabilities in real-time.
To prevent such vulnerabilities, only install packages from trusted sources, regularly audit your dependencies, and keep your packages updated.
If you have installed wawan-rojak22-breki, you should uninstall it immediately and review your project's dependencies for any other potential vulnerabilities.