cPanel released emergency updates on April 28 for CVE-2026-41940, an authentication bypass in cPanel & WHM and WP Squared rated CVSS 9.8. An unauthenticated remote attacker can use it to gain administrative control of the hosting panel. The flaw was exploited before the patch existed, and a working proof-of-concept was published the next day. Web hosting infrastructure worldwide is at high risk.
Technical details
The bug is a CRLF injection in the login and session-loading code. Before authentication, the cpsrvd daemon writes a session file to disk. If an attacker leaves out an expected part of the whostmgrsession cookie, the encryption normally applied to attacker-supplied values is skipped. Raw carriage-return and line-feed characters can then be sent through a malformed Basic authorization header and written into the session file unsanitised. The attacker adds properties such as root-level user attributes and triggers a session reload to get admin access. Internet-facing installations are vulnerable in their default configuration.
Exploitation
- Researchers suspect targeted zero-day use as early as February 23, 2026.
- watchTowr published technical analysis and a PoC on April 29. Rapid7 counted roughly 1.5 million internet-exposed cPanel instances with a basic Shodan query.
- CISA added the flaw to its Known Exploited Vulnerabilities catalog with a short federal deadline. Open-source reporting links follow-on attacks to the “Sorry” ransomware family and Mirai botnet loaders.
Who is affected
All cPanel & WHM versions after 11.40, including DNSOnly, and WP Squared builds up to 11.136.1.6. End-of-life branches will not get a fix.
Recommendations
- Upgrade now to a fixed build: 11.86.0.41, 11.110.0.97, 11.118.0.63, 11.126.0.54, 11.130.0.19, 11.132.0.29, 11.134.0.20 or 11.136.0.5. WP Squared is fixed in 136.1.7.
- Run the detection script cPanel added to its advisory on April 29 to inspect session files for signs of compromise. Because exploitation started before the patch, assume a breach until proven otherwise.
- If you cannot patch at once, temporarily restrict access to TCP ports 2083 and 2087 to trusted networks.
- Check for new or changed WHM accounts, unexpected cron jobs and web shells, and files with unusual extensions in web roots.
- Move servers on end-of-life cPanel versions to a supported release.