Malicious Code Injection in patria-donat94-breki Package
Summary
MAL-2025-74871: Malicious code in patria-donat94-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 patria-donat94-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 compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious scripts within the patria-donat94-breki package. These scripts are designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers by inflating reputation scores fraudulently. The malicious payload poses a risk to the integrity of the npm ecosystem and can lead to the distribution of compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall patria-donat94-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 patria-donat94-breki package and instead look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using npm audit to identify and address vulnerabilities in your dependencies.
Conclusion
The patria-donat94-breki package has been identified as containing malicious code that compromises the security of the npm ecosystem. It is essential for developers to remove this package from their projects and monitor for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for patria-donat94-breki →
FAQ
The patria-donat94-breki package 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, potentially affecting your project's integrity.
If you have installed the patria-donat94-breki package, it is crucial to remove it from your project immediately and check for any potential impacts on your application.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.