Malicious Code Injection in putri-wajit68-breki Package
Summary
MAL-2025-75068: Malicious code in putri-wajit68-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 putri-wajit68-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 generation and publication of derivative packages, which can inflate developer reputation scores. However, it has been identified as containing malicious code that modifies package metadata and repackages itself under random names, leading to potential pollution of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious intent behind the putri-wajit68-breki package, which includes scripts that automatically modify the package.json file. This modification removes private flags, alters version numbers, and generates random package names, allowing the package to continuously republish itself. The ramifications include the potential for developers to unknowingly install compromised packages, leading to security risks and a polluted npm registry.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-wajit68-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 avoid using the putri-wajit68-breki package and monitor your package-lock.json file for any unauthorized changes. Additionally, consider using tools like Vulert to monitor for vulnerabilities in your dependencies.
Conclusion
The putri-wajit68-breki package poses a significant security risk due to its malicious code that alters package metadata and repackages itself. It is crucial for developers to remove this package and monitor their dependencies to maintain the integrity of their projects.
See every vulnerability recorded for putri-wajit68-breki →
FAQ
It 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, potentially leading to the installation of compromised packages and pollution of the npm registry.
You should remove the putri-wajit68-breki package from your project and monitor for any unauthorized changes in your dependencies.
Yes, you can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without requiring any signup.
Regularly update your dependencies, monitor your package-lock.json file, and utilize tools like Vulert to stay informed about vulnerabilities.