Description
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 add_list() function, which accepts user-controlled array keys from $_POST['addresses'], passes them through sanitize_text_field(). 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.
References9
- plugins.trac.wordpress.org/browser/mailgun/tags/2.1.10/mailgun.…
- plugins.trac.wordpress.org/browser/mailgun/tags/2.1.10/mailgun.…
- plugins.trac.wordpress.org/browser/mailgun/tags/2.1.10/mailgun.…
- plugins.trac.wordpress.org/browser/mailgun/tags/2.1.10/mailgun.…
- plugins.trac.wordpress.org/browser/mailgun/trunk/mailgun.php#L2…
- plugins.trac.wordpress.org/browser/mailgun/trunk/mailgun.php#L3…
- plugins.trac.wordpress.org/browser/mailgun/trunk/mailgun.php#L3…
- plugins.trac.wordpress.org/browser/mailgun/trunk/mailgun.php#L5…
- www.wordfence.com/threat-intel/vulnerabilities/id/110e888d-69fc…
Metrics
- CVSS 3.1
-
9.8
CRITICAL
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 57 · as of 9 November 2026
- CWE
- CWE-918
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.