Malicious Code Vulnerability in matplotliv Package
Summary
MAL-2025-191787: Malicious code in matplotliv (PyPI). Affects matplotliv versions 0.1.0. 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 matplotliv package, available on PyPI, is designed for data visualization in Python, similar to the well-known matplotlib library. It aims to provide users with tools for creating static, animated, and interactive visualizations in Python. However, the package has been identified as a typosquatting attempt, which poses a risk to users who may inadvertently install it instead of the legitimate matplotlib package.
Vulnerability Detail
The vulnerability originates from a malicious code embedded in the matplotliv package, which is a result of typosquatting. This type of attack involves creating a package with a name similar to a legitimate one, tricking users into installing it. The malicious code collects sensitive data but does not exfiltrate it, which could lead to potential privacy violations and data leaks if exploited. The package was identified as part of a campaign targeting users of the matplotlib library, with the intention of misleading them into using a compromised version.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall matplotliv
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 workaround, users can manually check their installed packages and ensure that they are using the correct matplotlib package. You can list your installed packages with the command: pip list and confirm that 'matplotlib' is installed instead of 'matplotliv'.
Conclusion
The matplotliv package poses a significant risk due to its malicious code and typosquatting nature. Users are advised to uninstall this package and ensure they are using the legitimate matplotlib package to protect their data and maintain the integrity of their applications.
See every vulnerability recorded for matplotliv →
FAQ
Typosquatting is a malicious practice where attackers create a package with a name similar to a legitimate package to trick users into installing it.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you have installed matplotliv, you should uninstall it immediately and install the legitimate matplotlib package instead.
While the malicious code collects sensitive data, it does not exfiltrate it. However, it is recommended to uninstall the package to mitigate any risks.
Always verify package names before installation and consider using tools like Vulert to monitor for vulnerabilities in your dependencies.