Malicious Code Vulnerability in pitra-5 Package
Summary
MAL-2025-164321: Malicious code in pitra-5 (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 pitra-5 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards by generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability in the pitra-5 package stems from its inclusion in a campaign that floods npm with malicious packages. The code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which leads to the continuous republishing of variants. This behavior not only inflates developer reputation scores fraudulently but also pollutes the npm registry, potentially affecting other packages and users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall pitra-5
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 remove the pitra-5 package from your project by executing the following command: npm uninstall pitra-5. This will prevent any malicious code from executing while you seek a more permanent solution.
Conclusion
The pitra-5 package contains a significant vulnerability that can compromise the security of your npm projects. It is crucial to take immediate action by updating or removing the package to protect your application from potential threats.
See every vulnerability recorded for pitra-5 →
FAQ
The pitra-5 package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the modification of your package.json file, removal of private flags, and the introduction of malicious code that can compromise your project's integrity.
You should update the package to a patched version if available or remove it from your project to mitigate the risk.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.