A critical security flaw has been disclosed in the Mailgun for WordPress plugin, which is active on more than 80,000 websites. The vulnerability can allow an unauthenticated attacker to misuse a site’s Mailgun API access and potentially interfere with email routing.
The flaw is tracked as CVE-2026-78003 and affects Mailgun for WordPress version 2.2.0 and earlier. Sites running version 2.2.1 or 2.2.2 are protected against this specific issue. Administrators should check the installed version now and update through the normal WordPress plugin screen.
Key takeaways
- Mailgun for WordPress 2.2.0 and earlier are affected by CVE-2026-78003.
- Wordfence assigned the vulnerability a CVSS score of 9.8, or Critical.
- An attacker does not need a WordPress account to attempt exploitation.
- Version 2.2.1 introduced the relevant validation and nonce protections; 2.2.2 is the current release.
- No confirmed active exploitation was identified in the reviewed public advisories.
Mailgun for WordPress: affected and safe versions
| Plugin version | Status | Recommended action |
|---|---|---|
| 2.2.0 and earlier | Affected | Update immediately |
| 2.2.1 | Fixed for CVE-2026-78003 | Update to the current version when possible |
| 2.2.2 | Current release | No action beyond normal monitoring |
The official WordPress plugin directory lists version 2.2.2 as the current release and reports more than 80,000 active installations. The directory’s changelog says version 2.2.1 added nonce verification and server-side list-address validation to the affected add_list action.
mailgun. It should not be confused with unrelated plugins that also place “Mailgun” or “SMTP” in their names.What CVE-2026-78003 can do
According to the vulnerability record published by Wordfence and carried by the US National Vulnerability Database, the plugin did not sufficiently validate user-controlled input supplied to its mailing-list action. An attacker could manipulate that input so the website sends authenticated requests to unintended Mailgun API endpoints using the API key already configured on the WordPress site.
The dangerous part is not simply that an unwanted address might be added to a mailing list. The advisory says an attacker could potentially create inbound email-forwarding routes. If a vulnerable site also receives important account email through the affected Mailgun configuration, a malicious route could intercept password-reset messages and contribute to administrator account takeover.
This is a possible attack path described by the advisory, not proof that every vulnerable installation can be taken over in exactly the same way. The practical impact depends on how Mailgun is configured, which domains and routes the API key can manage, and where the site receives administrative email.
Why the flaw received a critical rating
Wordfence scored the vulnerability at 9.8 out of 10 under CVSS 3.1. The rating reflects a combination of characteristics: an attack can be attempted over the network, requires low complexity, needs no prior authentication and does not require a victim to click a link.
| Risk factor | What it means |
|---|---|
| Unauthenticated | The attacker does not need an existing WordPress user account. |
| Remote | The vulnerable action may be reached through a network request. |
| Mailgun API access | Requests may use the API key configured by the website. |
| Email-routing impact | A malicious route could expose sensitive account messages. |
| Potential account takeover | Intercepted password-reset email could help an attacker obtain administrator access. |
The NVD had not published its own independent severity assessment when this article was prepared; the 9.8 score shown in its record comes from the CVE’s Wordfence source. We also found no statement in the reviewed sources confirming exploitation in the wild.
How to check and update Mailgun for WordPress
- Sign in to the WordPress administration area.
- Open Plugins → Installed Plugins.
- Find Mailgun for WordPress and read the displayed version.
- If the version is 2.2.0 or older, take a current backup and select Update now.
- Confirm that WordPress reports version 2.2.2 after the update.
- Send a test message and verify that website forms and transactional email still arrive correctly.
Administrators with command-line access can inspect the installed version using WP-CLI:
wp plugin get mailgun --field=version
If an update is available, back up the site and then run:
wp plugin update mailgun
Use WP-CLI under the correct website account and WordPress path. Do not add --allow-root unless the server’s management model specifically requires it and you understand the resulting file-ownership implications.
What to do if you cannot update immediately
Updating is the preferred fix. If compatibility testing temporarily prevents it, disable the Mailgun plugin until the upgrade can be completed. WordPress will then stop using that plugin for mail delivery, so forms, password resets and store notifications may fail unless another tested mail method is configured.
Administrators should not treat a firewall rule as a permanent replacement for the patched plugin. A narrowly scoped web-application firewall rule may reduce exposure, but it can also miss alternate request formats or break legitimate functions.
Before changing a production website, create a verified database and files backup. If the website is also due for a core upgrade, follow the backup and compatibility checks in our WordPress 7.1 update guide before changing production.
What to check after updating
Installing 2.2.2 closes the affected code path, but administrators responsible for a previously vulnerable installation should also review the surrounding account:
- Inspect Mailgun routes and remove any forwarding rule you do not recognize.
- Review Mailgun activity and logs for unusual API operations.
- Confirm the expected sending domain, region and API configuration.
- Check WordPress administrator accounts for unexpected users or profile changes.
- Review recent password-reset activity and rotate credentials if suspicious behavior appears.
- Consider rotating the Mailgun API key after investigating, especially if the site was exposed for an extended period.
Rotating an API key without updating every service that uses it can interrupt mail delivery. Record the existing integrations first, replace the credential deliberately and test each application afterward.
Website owners should also keep WordPress core current and review every installed extension, including inactive plugins. Our WordPress 7.1 RC3 coverage explains the final pre-release testing stage, while the Linux server-hardening checklist covers safeguards outside WordPress.
Common questions
Has CVE-2026-78003 been exploited?
The public sources reviewed for this article did not confirm active exploitation. That does not make an affected site safe; the technical details are public and administrators should update promptly.
Is Mailgun itself vulnerable?
The disclosed flaw is in the Mailgun for WordPress plugin’s handling of requests. It is not described as a vulnerability in Mailgun’s hosted platform.
Do I need to remove the plugin?
No, provided the site is running a fixed version. Update to version 2.2.2, test mail delivery and review the Mailgun account for unexpected routes or activity.
Does changing the WordPress password fix the vulnerability?
No. The vulnerable request does not require a WordPress login. Updating the plugin fixes the affected code; credential changes are an additional response if suspicious activity is discovered.
Sources
- NIST National Vulnerability Database: CVE-2026-78003
- Wordfence vulnerability record
- WordPress.org: Mailgun for WordPress plugin and changelog
Prepared on 24 August 2026. LinuxPanda will update this report if the vendor, Wordfence or a government security authority publishes material new information about exploitation or remediation.










Comments