Malicious Code Injection in quintessential_ptarmigan-tool: A Threat to npm Users
Summary
MAL-2025-107670: Malicious code in quintessential_ptarmigan-tool (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 quintessential_ptarmigan-tool is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate certain functionalities related to the tea protocol, but it has been compromised. The malicious version of this package includes scripts that automatically generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. This behavior not only clutters the npm registry but also poses significant risks to developers and users relying on this package.
Vulnerability Detail
The vulnerability stems from malicious code embedded in the quintessential_ptarmigan-tool package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The primary goal of this malicious payload is to continuously republish variants of the package, polluting the npm registry and potentially leading to security risks for users who unknowingly install these compromised packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which has been associated with various malicious npm packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall quintessential_ptarmigan-tool
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 quintessential_ptarmigan-tool package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The quintessential_ptarmigan-tool package has been identified as containing malicious code that poses significant risks to users. It is crucial to remove this package from your projects and monitor for updates or patches. Utilizing tools like Vulert can help in identifying and managing vulnerabilities in your software dependencies effectively.
See every vulnerability recorded for quintessential_ptarmigan-tool →
FAQ
It is an npm package that was part of a token reward campaign but has been compromised with malicious code.
The malicious code modifies your package.json, removes private flags, and can lead to the installation of unwanted packages, compromising your project's integrity.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
Remove the quintessential_ptarmigan-tool package from your project and update to a secure version if available.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.