Malicious Code Injection in patria-getas52-breki Package
Summary
MAL-2025-122460: Malicious code in patria-getas52-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-getas52-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, often with randomized names, to artificially inflate developer reputation scores for token rewards. Its functionality is compromised by the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the patria-getas52-breki package originates from malicious code embedded within the package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include potential security risks for developers using this package, as it undermines the integrity of the npm ecosystem and can lead to reputation damage for affected developers.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall patria-getas52-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 temporarily avoid using the patria-getas52-breki package by removing it from your dependencies and replacing it with a trusted alternative package that provides similar functionality.
Conclusion
The patria-getas52-breki package contains malicious code that poses significant risks to developers and the integrity of the npm ecosystem. Immediate action is required to remove this package and monitor for any potential vulnerabilities in your project.
See every vulnerability recorded for patria-getas52-breki →
FAQ
The patria-getas52-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, potentially exposing your project to security risks and affecting your reputation on the npm registry.
You should uninstall the patria-getas52-breki package immediately using 'npm uninstall patria-getas52-breki' and check for any alternative packages.
Yes, you can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.
Regularly audit your dependencies using tools like npm audit and consider using services like Vulert to monitor for vulnerabilities in real-time.