CVE-2026-78003: Mailgun for WordPress <= 2.2.0 - Unauthenticated Server-Side Request Forgery (SSRF) via 'addresses' Array Keys

Published Aug 22, 2026
·
Updated

The Mailgun for WordPress plugin for WordPress is vulnerable to Server-Side Request Forgery (SSRF) via path traversal in versions up to and including 2.2.0. This is due to insufficient input validation in the addlist() function, which accepts user-controlled array keys from $POST['addresses'], passes them through sanitizetextfield(). This makes it possible for unauthenticated attackers to make authenticated POST requests to any Mailgun API endpoint using the WordPress site's API key, including creating inbound email-forwarding routes that can intercept password reset emails, leading to administrator account takeover.

Affected Software

1 affected component
Mailgun for WordPress<=2.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mailgun for WordPress to a version that resolves this vulnerability.

    Fixed in 2.2.0
  2. Compensating control

    Because the vulnerability is exploitable via unauthenticated attackers by making authenticated POST requests to any Mailgun API endpoint using the WordPress site's API key, restrict/mitigate unauthenticated access to the Mailgun for WordPress handler endpoints (e.g., via WAF/ACL limiting ability to submit POST requests to the vulnerable function) until the plugin is updated.

Event History

Aug 22, 2026
CVE Published
via MITRE·08:26 AM
Data Sourced
via MITRE·08:26 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What access does an attacker need to exploit this issue?

No authentication or user interaction is required. An unauthenticated remote attacker can submit crafted values through the affected addresses input.

2

Which sites are exposed?

WordPress sites running Mailgun for WordPress version 2.2.0 or earlier are affected. Exploitation relies on the site having a Mailgun API key available to the plugin, because requests are made using that key.

3

What can an attacker do with the Mailgun API access obtained through this flaw?

The attacker can cause authenticated POST requests to Mailgun API endpoints. The described impact includes creating inbound email-forwarding routes that intercept password-reset messages and can enable WordPress administrator account takeover.

4

How can defenders identify possible exploitation?

Review Mailgun configuration and API activity for unexpected authenticated POST requests, particularly newly created inbound email-forwarding routes. Also investigate unexpected password-reset activity or administrator account changes on the associated WordPress site.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203