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.
Published: 2026-08-22
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Mailgun for WordPress plugin suffers from an SSRF flaw caused by inadequate input validation in the add_list() function. The function accepts user-controlled array keys from $_POST['addresses'] and sanitizes them only with sanitize_text_field(), which fails to prevent malicious URL injection. An unauthenticated attacker can therefore construct a POST request that causes the plugin to send authenticated requests to any Mailgun API endpoint using the site's stored API key. This capability enables the attacker to create inbound email-forwarding routes that capture password reset emails, ultimately allowing the attacker to takeover administrator accounts.

Affected Systems

Mailgun for WordPress plugin for WordPress, versions up to and including 2.2.0 are affected. Any WordPress installation using these plugin versions with an active Mailgun API key is vulnerable.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.8 and is not listed in the CISA KEV catalog. No EPSS score is available, but the lack of an authentication requirement and the use of a privileged API key make exploitation highly feasible. Attackers can trigger the SSRF by sending crafted POST requests to the plugin’s add_list endpoint, potentially leading to complete administrative compromise of the WordPress site.

Generated by OpenCVE AI on August 22, 2026 at 10:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • If the plugin is not required, disable or delete it from the WordPress installation.
  • Implement a web application firewall rule to block or flag requests to the add_list endpoint containing suspicious array keys based on the pattern of the SSRF attack.
  • Restrict the Mailgun API key to the minimum necessary permissions and consider applying IP restrictions to further limit unintended usage.

Generated by OpenCVE AI on August 22, 2026 at 10:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 08:45:00 +0000

Type Values Removed Values Added
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.
Title Mailgun for WordPress <= 2.2.0 - Unauthenticated Server-Side Request Forgery (SSRF) via 'addresses' Array Keys
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-08-22T08:26:38.970Z

Reserved: 2026-08-21T19:58:10.111Z

Link: CVE-2026-78003

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T09:16:53.543

Modified: 2026-08-22T09:16:53.543

Link: CVE-2026-78003

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T10:15:04Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)