Mailgun Subscriptions CVE-2025-11876
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as contributor-level user
-
ExploitInject script into shortcode 'description' attribute
-
ExecutionPayload stored in page content
-
ImpactExecutes in visitor/admin browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated WordPress account at contributor level or above (PR:L) on a site running the Mailgun Subscriptions plugin version 1.3.1 or earlier (fix appears in 1.3.3). The specific injection point is the 'description' attribute of the 'mailgun_subscription_form' shortcode, which is rendered without input sanitization or output escaping. Limiting factors: the attacker cannot be fully anonymous - they need a trusted contributor account - and the payload only fires when a victim subsequently views the page containing the malicious shortcode, so impact depends on who views the injected page. |
| Impact | This is a moderate-severity stored XSS (CVSS 6.4, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) that signals a real but bounded risk. The CVSS vector shows network attack vector and low complexity, but critically requires PR:L - contributor-level authentication - which means it is NOT an unauthenticated remote compromise; the attacker must already hold a trusted (if low-privilege) account. EPSS corroborates low near-term exploitation likelihood at 0.22% (12th percentile), and there is no CISA KEV listing and no public proof-of-concept exploit, so all signals are consistent: this is a low-urgency, low-probability issue rather than an actively-weaponized flaw. The scope-changed (S:C) rating reflects that injected script executes in the browser context of any visitor viewing the page, which is the standard justification for the C:L/I:L impact. Bottom line: a genuine vulnerability worth patching in routine cycles, but not an emergency - its risk is gated almost entirely by the contributor-access prerequisite and the absence of any exploitation evidence. One data note: the NVD description states vulnerable 'up to and including 1.3.1,' while the GitHub patch diff shows the sanitization fix shipped in version 1.3.3 (bumped from 1.3.2) - verify the true fixed version before remediation. |
| Exploit ScenarioDerived | An attacker who holds or obtains a contributor-level WordPress account creates or edits a post containing the 'mailgun_subscription_form' shortcode and places a malicious script payload in the 'description' attribute, which is stored unsanitized. When any site visitor or administrator later views the published page, the injected JavaScript executes in their browser, enabling session/cookie theft or admin-action forgery. No public exploit code has been identified, though the fixing commit is public and reveals the exact vulnerable parameter. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Stored cross-site scripting in the Mailgun Subscriptions plugin for WordPress (all versions up to and including 1.3.1) allows authenticated attackers with contributor-level access or above to inject arbitrary web scripts through the 'description' attribute of the mailgun_subscription_form shortcode, which is neither sanitized on input nor escaped on output, so the payload executes in the browser of any user who later views the affected page. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N, score 6.4) confirms the attack is network-reachable, requires a low-privileged authenticated account, and carries scope change because the injected script runs in the site's origin and can reach beyond the plugin itself. EPSS is low at 0.22% (12th percentile) and no public exploit code has been identified at time of analysis; the vendor addressed the flaw in version 1.3.3 by wrapping the attribute in wp_kses_post().
RemediationAI
Vendor-released patch: 1.3.3. Update the Mailgun Subscriptions plugin to 1.3.3 or later, which applies wp_kses_post() to the shortcode 'description' attribute as shown in PR #8 commit a8b597e3a09f3a1b76436d09de434fd9bfe29f64 and tracked in the WordPress.org Trac changeset 3413662; the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/149e60cc-9612-4651-b02d-4b68a3533d36?source=cve documents the same fix. If patching must be delayed, deactivate the plugin to remove the vulnerable shortcode and code path entirely, accepting the loss of the subscription form functionality, or temporarily strip the [mailgun_subscription_form] shortcode from any published content so no injected description attribute can render. As a compensating control, restrict post-creation privileges to a small set of fully trusted accounts, because contributor, author, and editor roles can all reach this sink, and audit existing posts and drafts for the shortcode with unexpected markup in the description attribute; this reduces the attack surface but does not fix the underlying output-escaping defect and is difficult to sustain at scale. A custom template or shortcode override that escapes the description with esc_attr()/esc_html() can serve as a stopgap, but any such override will be overwritten by plugin updates and must be reapplied after each upgrade.
Affected ProductsAI
The affected product is the Mailgun Subscriptions plugin for WordPress, with every release up to and including 1.3.1 vulnerable. The vulnerable sink appears in Mailgun_Subscriptions/Shortcode_Handler.php in later builds and in Mailgun_Subscriptions/Subscription_Form.php (line 101) in the 1.2.0 tag referenced by NVD, both reachable through the mailgun_subscription_form shortcode's description attribute. The fix is published as PR #8 on the flightless/mailgun-subscriptions GitHub repository (commit a8b597e3a09f3a1b76436d09de434fd9bfe29f64) and mirrored in the WordPress.org plugin Trac changeset 3413662, where the readme stable tag advances from 1.3.2 to 1.3.3, marking 1.3.3 as the first fixed release. No CPE strings were supplied in the provided intelligence, so asset matching should rely on the plugin slug and version comparison (mailgun-subscriptions <= 1.3.1); the Wordfence threat-intelligence advisory (ID 149e60cc-9612-4651-b02d-4b68a3533d36) is the primary coordinating reference.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The plugin registers the [mailgun_subscription_form] shortcode through the WordPress Shortcode API, and the handler in Mailgun_Subscriptions/Shortcode_Handler.php previously assigned 'description' => $atts['description'] straight into rendered output with no filtering. This is a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) stored XSS: shortcode attributes are persisted inside post content, so a contributor-level user can save a crafted description attribute that is later emitted unescaped to every visitor of that page. The scope-changed rating (S:C) reflects that the executed script runs with the WordPress site's origin and can touch resources outside the plugin, while C:L/I:L reflects the typical bounded impact of XSS in this context; PR:L reflects that the attacker must hold a contributor account rather than being anonymous, and the UI:N rating corresponds to the payload firing automatically on page view. The upstream fix in PR #8 (commit a8b597e3a09f3a1b76436d09de434fd9bfe29f64) applies wp_kses_post() to the description attribute, stripping unsafe markup, and the same change set bumps the plugin's version and stable tag to 1.3.3 with a changelog entry explicitly crediting the added shortcode-description sanitization.
Know when Wordpress Plugin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Contributor authentication is required so PR:L; stored injection needs no attacker-side complexity or victim interaction (AC:L/UI:N), and script executing in a visitor's browser crosses a trust boundary (S:C) with limited C/I impact.
Primary rating from Vendor (wordfence).
CVSS VectorVendor: wordfence
DescriptionCVE.org
The Mailgun Subscriptions plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'mailgun_subscription_form' shortcode in all versions up to, and including, 1.3.1 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
NVD
CVE.org
EPSS
GitHub
Exploit-DB