Malicious Code Injection in pitra-54: A Threat to npm Packages
Summary
MAL-2025-164326: Malicious code in pitra-54 (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 pitra-54 is part of the npm ecosystem, which is widely used for JavaScript package management. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts that manipulate package metadata and publish derivative versions to inflate developer reputation scores, posing a significant risk to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in pitra-54 originates from its design to include autopublish scripts that modify the package.json file. This includes removing private flags, changing version numbers, and generating random package names. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential exploitation of unsuspecting developers who may unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall pitra-54
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 measure, you can avoid using the pitra-54 package and replace it with a trusted alternative. Always verify the integrity and source of packages before installation.
Conclusion
The pitra-54 package poses a significant threat due to its malicious code designed to manipulate npm package metadata. Users are advised to uninstall this package and monitor their projects for vulnerabilities using tools like Vulert. Staying informed and vigilant is key to maintaining the security of your software.
See every vulnerability recorded for pitra-54 →
FAQ
pitra-54 is an npm package that has been identified as malicious, designed to manipulate package metadata and publish derivative versions.
The vulnerability can lead to the installation of compromised packages, which may result in security breaches or data loss.
You can use Vulert to monitor your application for vulnerabilities. By analyzing your package-lock.json file, Vulert provides real-time alerts for open-source vulnerabilities.
There is no patch available for pitra-54. The recommended action is to uninstall the package and avoid using it.
If you have installed pitra-54, you should immediately uninstall it using 'npm uninstall pitra-54' and review your project for any other potentially compromised packages.