Malicious Code Injection in pitra-8: A Threat to npm Ecosystem
Summary
MAL-2025-164336: Malicious code in pitra-8 (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
pitra-8 is an npm package that has been identified as part of a malicious campaign targeting the npm ecosystem. It is associated with the tea.xyz token reward initiative, which has been known to flood the npm registry with packages that contain harmful scripts. These scripts are designed to manipulate package metadata and inflate developer reputation scores, posing a significant risk to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in pitra-8 originates from its inclusion in a malicious package campaign that utilizes autopublish scripts to generate and publish derivative packages with randomized names. This manipulation involves altering the package.json file to remove private flags, changing version numbers, and continuously republishing variants, which can lead to registry pollution and potential exploitation of unsuspecting developers. The malicious payload can compromise the security of projects that depend on this package, making it crucial for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall pitra-8
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 pitra-8 and any other packages associated with the tea.xyz token reward campaign. Regularly audit your project's dependencies to identify and remove any potentially harmful packages.
Conclusion
The pitra-8 package poses a significant threat to the npm ecosystem due to its malicious code that alters package metadata and inflates developer reputation scores. Users are strongly advised to uninstall this package and monitor their dependencies for similar vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for pitra-8 →
FAQ
pitra-8 is an npm package that has been linked to a malicious campaign aimed at manipulating the npm registry and inflating developer reputation scores.
The vulnerability can lead to the introduction of malicious code into your project, compromising its security and integrity.
You should uninstall pitra-8 immediately using the command npm uninstall pitra-8 and audit your dependencies for any other malicious packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities using the Vulert playground without any signup.
There are no patches available for pitra-8 as it is a malicious package. The best course of action is to remove it from your project.