Malicious Code Vulnerability in graphdict Package
Summary
MAL-2025-6515: Malicious code in graphdict (PyPI). Affects graphdict versions 3.4.0 – 3.4.8. 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 graphdict package is a Python library available on PyPI, designed for creating and manipulating graph data structures. It offers functionalities such as graph traversal, node and edge management, and various algorithms for graph analysis. However, certain versions of this package have been identified to contain malicious code, posing significant security risks to users who integrate it into their applications.
Vulnerability Detail
The vulnerability in the graphdict package stems from the presence of malicious code that can execute harmful actions on the user's system. This code was introduced in several versions, including 3.4.0, 3.4.2, 3.4.6, 3.4.8, 3.4.10, 3.4.11, 3.4.12, 3.4.13, and 3.4.14. Users who have installed these versions may unknowingly expose their systems to data breaches, unauthorized access, or other malicious activities. The origin of this vulnerability is linked to a malicious package upload, which was detected by security researchers.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall graphdict
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
If immediate updating is not feasible, consider removing the graphdict package from your project until a secure version is confirmed. You can uninstall it using the command: pip uninstall graphdict.
Conclusion
The graphdict package has been found to contain malicious code in several of its versions, posing serious security risks. Users are advised to update to a secure version or uninstall the package until a fix is available. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for graphdict →
FAQ
The affected versions include 3.4.0, 3.4.2, 3.4.6, 3.4.8, 3.4.10, 3.4.11, 3.4.12, 3.4.13, and 3.4.14.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
If you cannot update the package right away, consider uninstalling it to mitigate risks until a secure version is available.
The vulnerability was identified by ReversingLabs, a security research firm specializing in malware detection.
Using the affected versions may lead to data breaches, unauthorized access, or other malicious activities that can compromise your system's security.