Malicious Code Execution in selenium-integration Package
Summary
MAL-2026-506: Malicious code in selenium-integration (PyPI). Affects selenium-integration versions 1.0.1. 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 selenium-integration package, available on PyPI, is designed to facilitate integration with Selenium, a popular web automation tool. This package allows developers to automate web applications for testing purposes. However, it has been compromised, leading to a significant security vulnerability that can expose users to malicious code execution.
Vulnerability Detail
The vulnerability originates from a malicious actor, identified as kam193, who has embedded highly obfuscated code within the selenium-integration package. Upon importing the module, the code automatically downloads and executes a remote script from a malicious server. This poses severe risks, including unauthorized access to sensitive information and potential system compromise. The obfuscation of the code makes it challenging to detect and mitigate the threat effectively.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall selenium-integration
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 selenium-integration package until a secure version is available. If you must use it, consider isolating the environment where it is installed to minimize potential risks.
Conclusion
The selenium-integration package has been compromised, leading to a serious vulnerability that allows for the execution of malicious code. Users are urged to take immediate action to remove the package and monitor their systems for any signs of compromise. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.
See every vulnerability recorded for selenium-integration →
FAQ
The vulnerability involves the execution of malicious code that downloads and runs a remote script without user consent.
You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities. Visit Vulert Scanner for a quick assessment.
Immediately uninstall the selenium-integration package and monitor your system for any unusual activity.
Yes, the domains juvenile-server.vercel.app and helper-dun-seven.vercel.app are associated with the malicious activities linked to this vulnerability.
It is advisable to keep an eye on the official repository for the selenium-integration package for any announcements regarding a patch.