Malicious Code Detected in hairest Package: Exfiltration of Discord Credentials
Summary
MAL-2026-254: Malicious code in hairest (PyPI). Affects hairest versions 2.1.0 – 2.3.3. 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 hairest package is a Python library available on PyPI, designed for various functionalities related to hair styling and management. However, it has been compromised, leading to significant security concerns. The package has been found to contain malicious code that collects and exfiltrates sensitive information, particularly Discord credentials, from users' systems.
Vulnerability Detail
The vulnerability originates from a malicious campaign identified as '2025-06-soupclaw', where the hairest package has been modified to include code that exfiltrates credentials from various sources. This includes environment variables, browser data, and generic credential information. The malicious code poses a severe risk to users, as it can lead to unauthorized access to their Discord accounts and potentially other linked services.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall hairest
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, users are advised to uninstall the hairest package until a secure version is confirmed. This can be done using the command: 'pip uninstall hairest'. Additionally, users should monitor their Discord accounts for any unauthorized access and change their passwords if necessary.
Conclusion
The hairest package has been compromised, leading to the exfiltration of sensitive Discord credentials. Users are strongly advised to update or uninstall the package to mitigate risks. Regular monitoring of accounts and using tools like Vulert can help in identifying vulnerabilities in open-source software.
See every vulnerability recorded for hairest →
FAQ
The hairest package is a Python library designed for hair styling and management functionalities.
The malicious code collects sensitive information such as Discord credentials from various sources on the user's system and exfiltrates it to an external entity.
If you have used the hairest package, it is crucial to uninstall it immediately and monitor your accounts for any suspicious activity.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Failing to address this vulnerability can lead to unauthorized access to your Discord account and other linked services, potentially resulting in data loss or further security breaches.