CVE-2026-41940 is a critical flaw in cPanel and WebHost Manager (WHM) that lets an attacker skip the login screen and get administrator access, with no password. It was exploited for weeks before the fix, and cleaning up after it is harder than patching it.
This guide covers what the vulnerability does, how to patch it, the signs that your cPanel account was already used by someone else, how to clean up, and how to move your sites somewhere else safely if you decide to. If you are comparing control panels, our list of the best cPanel alternatives goes through the options.

Key Takeaways
- What it is: an authentication bypass in cPanel and WHM, CVSS 9.8 out of 10, fixed by cPanel on 28 April 2026.
- Exploited before the fix: CISA added it to its Known Exploited Vulnerabilities catalog, and hosting providers reported attacks for at least 30 days before the advisory.
- Patching is step one, not the end: an attacker who got in before you patched may have left API tokens, accounts or WordPress Application Passwords that still work.
- Signs of a hacked cPanel: unknown API tokens, unknown reseller or admin accounts, and phishing pages appearing on your WordPress sites.
- Moving hosts does not remove an attacker. Clean up first, then move.
- xCloud customers are not affected: xCloud does not use cPanel or WHM.
What Happened: A Critical cPanel Authentication Bypass
On 28 April 2026, cPanel issued an emergency security update for a critical vulnerability tracked as CVE-2026-41940.
- Severity: a remote attacker can get full administrator access to the server without a password. It is rated CVSS 9.8 out of 10 (Critical).
- Active exploitation: within 48 hours of disclosure, the U.S. Cybersecurity and Infrastructure Security Agency added it to its Known Exploited Vulnerabilities catalog.
- Scope: the issue affects all supported versions of cPanel and WHM, so a large share of the world’s shared hosting servers were exposed at once.
It Was Exploited for Weeks Before the Patch
According to The Hacker News, KnownHost CEO Daniel Pearson said the vulnerability had been exploited in the wild “for at least the last 30 days, if not longer” before the public advisory.
When the advisory landed, hosting providers blocked their customers’ access to cPanel and WHM ports at the firewall while they patched. As Benjamin Harris, CEO of watchTowr Labs, told The Hacker News: “Within hours of the advisory dropping, nearly every major hosting provider on the planet had firewalled their own customers off their own product.”
cPanel released a fix about two hours after the advisory went public. But the attacks had started weeks earlier, so a server that is patched today can still have been entered before the patch. That is why the cleanup section below matters.
Why This Vulnerability Is So Dangerous
This is not a simple login bug. The flaw sits in the authentication flow of cPanel’s service daemon (cpsrvd):
- Before authentication finishes, cPanel writes session data to disk.
- The exploit injects specially crafted characters (CRLF injection) into HTTP headers.
- Because this input is not cleaned, attackers can inject values such as
user=rootor other privileged session fields. - When the session loads later, the system treats those injected values as real, verified login data.
- In some cases, the login checks are skipped entirely when those fields are present.
The result: an attacker can skip the login screen and get root-level access. No password, no guessing and no action from you.
What an Attacker Can Do With It
Through WHM, an attacker gets full control of the server:
- Root-level control of the server
- Access to every hosted website, database and email account
- The ability to change server settings and install malware or backdoors
- Hidden admin or reseller accounts and API tokens that keep working later
- Copies of customer and user data
On shared hosting, one compromised server can expose every account on that machine.
How to Patch CVE-2026-41940
If your server runs cPanel, do this now.
Step 1: Update cPanel
Log in to your server over SSH and run cPanel’s update command:
/scripts/upcp --force
Patched builds include 11.136.0.5 and 11.134.0.20. Check your build number in WHM after the update, then restart the cpsrvd service.
Step 2: Restrict Access If You Cannot Patch Right Away
Block outside access to the cPanel and WHM ports at your firewall until you can update:
- 2083 and 2087 (cPanel and WHM over SSL)
- 2095 and 2096 (Webmail over SSL)
Step 3: Run cPanel’s Detection Script
cPanel published a detection script for signs of compromise, available from cPanel’s own support site (the NVD entry lists the vulnerability details). Run it and review your access logs back to late March 2026 for logins you do not recognise, new accounts and settings you did not change.
On shared or reseller hosting? You cannot patch the server yourself. Ask your provider to confirm they applied the fix and whether your server showed signs of compromise.
Signs Your cPanel Account Was Hacked
Many people found out about this the hard way: their WordPress sites started showing phishing pages, they removed them, and the pages came back. Look for these signs:
- API tokens you did not create. Check Security → Manage API Tokens in each cPanel account, and Manage API Tokens in WHM. A token in WHM that you did not create means someone signed in with your reseller or root login.
- Accounts you do not recognise: new reseller accounts in WHM, new cPanel users or new email accounts.
- Unknown WordPress admins or Application Passwords. Check Users in each WordPress site, and the Application Passwords section of each admin’s profile.
- Pages and files you did not add, such as phishing forms, odd PHP files in
wp-content/uploads, or redirects to other sites. - Spam sent from your domains, or mail providers rejecting your mail.
How to Clean Up a Hacked cPanel Account
Work from the top level down, because a login at the top can recreate everything below it:
- Patch first (see above), or confirm your provider has.
- Turn on two-factor authentication in WHM, then in every cPanel account.
- Change the password of the email account tied to your reseller or WHM login. Whoever can read that inbox can reset your password and get back in.
- Change your WHM, reseller and cPanel passwords from a computer you trust. A saved password on an infected or shared computer leaks the new one too.
- Revoke every API token in WHM and cPanel, and create new ones only when you need them.
- Revoke WordPress Application Passwords and remove admin users you do not recognise. Both keep working after a password reset.
- Scan and clean the sites: replace WordPress core and plugin files with clean copies, remove unknown files, and check the database for injected links.
- Watch for a week. If new tokens or accounts appear, the way in is still open. Look again at the reseller email account and the computers that log in.
Why This Keeps Happening on Shared Hosting
cPanel was designed when shared hosting was the main way to run websites. One control panel manages many customer accounts and runs highly privileged services on the same server.
That design is convenient, but it gives every flaw a large blast radius. A bug in the control layer does not put one site at risk; it puts every account on the server at risk. This is less a failure of cPanel’s engineers than a limit of the shared-server model, and switching to another panel with the same model does not change it.
How xCloud Handles Security Differently
xCloud does not use cPanel or WHM, so CVE-2026-41940 does not apply to servers managed in xCloud and customers do not need to do anything.
That is not because our code has no bugs. Every large codebase ships vulnerabilities, including ours. What differs is how sites are separated and how fast fixes reach servers:
- Your own server, separate site users: each site runs as its own system user with its own path, so an SFTP or SSH login for one site uses that site’s user. There is no shared reseller account across customers.
- A firewall in front of every site: the built-in firewall (8G and 7G rules) blocks SQL injection, script injection and bad bots, free on every plan.
- Login protection for WordPress sign-in pages, free.
- Automatic security updates for Ubuntu on every server xCloud provisions; xCloud can also patch PHP, the database and Redis.
- A daily WordPress vulnerability scanner for core, plugins and themes on paid plans.
- Two-factor authentication on your xCloud account (how to set it up).
Temporary Fixes Without Logging In
When a vulnerability hits Linux, PHP or the database, we protect servers connected to xCloud with a temporary fix and then patch them once the official fix ships. You do not need SSH or a support ticket. Every response is listed with its dates on our security response record, for example:
- PHP2Shell: a temporary fix was live 8 hours before PHP’s official fix.
- Copy Fail and Dirty Frag: temporary fixes went out to more than 10,000 servers (how we did it).
Thinking About Leaving cPanel? Clean Up First
Moving hosts does not remove an attacker. If the problem is a stolen login or a backdoor in your sites, it moves with them. Finish the cleanup above, then move.
xCloud can migrate a cPanel account in three ways: through the cPanel API, by uploading a full cPanel backup, or by having cPanel send its full backup to xCloud over SCP. If your API tokens were abused, use the backup upload or SCP instead of creating another token. The cPanel migration guide shows each step, and how to safely move websites off cPanel covers planning, email and the DNS switch.
- Need email too? The xCloud Mailbox add-on includes webmail, and you can import existing mail from cPanel into a paid mailbox over IMAP.
- Don’t want to run a server? With xCloud Managed, we supply and look after the server, and you manage your sites.
- Comparing panels? See xCloud vs Enhance and the full list of cPanel alternatives.
You can start free with one server and up to 10 sites.
Patch Today, Then Decide Where Your Sites Live
CVE-2026-41940 is fixed, but servers that were entered before the fix can still be open. Patch, check for unknown tokens and accounts, clean up, and only then decide whether to stay on cPanel or move.
If you move, choose a setup that keeps sites separate and patches the server for you, so the next zero-day is handled before you hear about it.
If you have found this blog helpful, feel free to subscribe to our blogs for valuable tutorials, guides, knowledge, and tips on web hosting and server management. You can also join our Facebook community to share insights and take part in discussions.
Frequently Asked Questions
What is CVE-2026-41940?
CVE-2026-41940 is a critical authentication bypass in cPanel and WHM, rated 9.8 out of 10. It lets a remote attacker sign in with administrator rights without a password. cPanel released a fix on 28 April 2026, and CISA lists it as exploited in the wild.
How do I know if my cPanel account was hacked?
Look for API tokens you did not create under Security → Manage API Tokens in cPanel or in WHM, reseller or admin accounts you do not recognise, unknown WordPress admins or Application Passwords, and pages on your sites you did not publish, such as phishing forms.
Does changing my cPanel password remove an attacker?
Not on its own. API tokens and WordPress Application Passwords keep working after a password change, so revoke them too, turn on two-factor authentication in WHM and cPanel, and change the password of the email account tied to your reseller login.
Are xCloud customers affected by CVE-2026-41940?
No. xCloud does not use cPanel or WHM, so this vulnerability does not apply to servers managed in xCloud and customers do not need to do anything.
Last updated November 26, 2026
← All articles