Malicious Code Detected in aliyun-python-sdk-v2 Package - Potential Security Risk
Summary
MAL-2026-917: Malicious code in aliyun-python-sdk-v2 (PyPI). Affects aliyun-python-sdk-v2 versions 2.13.36. 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 aliyun-python-sdk-v2 package is a Python library designed for interacting with Alibaba Cloud services. It provides developers with tools to integrate cloud functionalities into their applications. However, this package has been found to impersonate legitimate Alibaba Cloud packages, raising concerns about its integrity and security.
Vulnerability Detail
The vulnerability stems from a series of malicious packages that impersonate Alibaba Cloud services. The affected version, 2.13.36, contains obfuscated code that may execute harmful actions, potentially compromising user data and system integrity. This issue is categorized as typosquatting and impersonation, where attackers create deceptive package names to mislead users into installing malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall aliyun-python-sdk-v2
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, avoid using the aliyun-python-sdk-v2 package until a secure version is confirmed. Consider using alternative libraries that provide similar functionalities without the associated risks.
Conclusion
The aliyun-python-sdk-v2 package has been identified as malicious, posing significant security risks due to its obfuscated code and impersonation tactics. Users are advised to update or remove the package and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for aliyun-python-sdk-v2 →
FAQ
It is a Python library for interacting with Alibaba Cloud services, allowing developers to integrate cloud functionalities into their applications.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.
If you have installed version 2.13.36 of the aliyun-python-sdk-v2 package, it is crucial to update it immediately to a secure version or remove it from your project.
Using the compromised package may expose your application to malicious code execution, data theft, and other security vulnerabilities, potentially leading to severe consequences.
Vulert uses the Pipfile.lock to monitor open-source vulnerabilities in your software, providing real-time alerts without requiring code access or installation.