
Python verification script for CVE-2026-41940, an authentication bypass in cPanel & WHM, enabling authorized defensive validation and patching guidance.
This repository contains a Python verification script for CVE-2026-41940, a critical authentication bypass vulnerability disclosed in cPanel & WHM.
This project is intended for authorized defensive validation only. It is not intended for exploit development, unauthorized access, or misuse against systems you do not own or administer.
Official cPanel security advisory:
Additional CVE record:
CVE-2026-41940 is a critical authentication bypass vulnerability in the cPanel & WHM login flow. The issue may allow an unauthenticated remote attacker to gain unauthorized access to the control panel.
CVE-2026-41940CWE-306 - Missing Authentication for Critical Function9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAccording to the cPanel advisory, the issue affects cPanel software versions after 11.40. Affected systems should be updated to a patched release as soon as possible.
According to the official cPanel advisory, the following versions and later are patched:
11.86.0.41 and later11.110.0.97 and later11.118.0.63 and later11.124.0.35 and later11.126.0.54 and later11.130.0.19 and later11.132.0.29 and later11.134.0.20 and later11.136.0.5 and later136.1.7 and laterFor CentOS 6 or CloudLinux 6 systems running v110.0.50, cPanel states that v110.0.103 has also been released as a direct update.
verify_cve2026_41940.py - Python-based verification script for CVE-2026-41940Run the checker against a WHM target you are authorized to test:
python3 verify_cve2026_41940.py --target https://target.example.com:2087
Example:
python3 verify_cve2026_41940.py --target https://192.0.2.10:2087
A successful verification result indicates that the target may be affected by the vulnerability. A failed result may indicate that the target is patched, unreachable, or that the verification conditions were not met.
cPanel's official recommendation is to update affected servers immediately:
/scripts/upcp --force
After the update, verify the installed cPanel build and restart the cPanel service:
/usr/local/cpanel/cpanel -V
/scripts/restartsrv_cpsrvd --hard
If an immediate update is not possible, cPanel recommends temporary mitigations such as restricting inbound access to the relevant cPanel/WHM ports at the firewall or stopping affected services. Always follow the official advisory for the most accurate and current remediation guidance.
This repository is provided for education, defensive validation, and authorized security research. Any unauthorized use, damage, or access attempt is the sole responsibility of the user.