Skip to main content
Vulnerability Database/CVE-2026-96567

CVE-2026-96567: MW WP Form WordPress Plugin XSS Vulnerability

CVE-2026-96567 is a stored XSS vulnerability in MW WP Form plugin for WordPress that lets unauthenticated attackers inject malicious scripts. This article covers technical details, affected versions, security impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-96567 Overview

The MW WP Form plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 5.1.7. The flaw resides in handling of the post_id parameter, where the plugin fails to sanitize input and escape output. Unauthenticated attackers can inject arbitrary JavaScript that executes when any user visits an affected page. The MW_WP_Form_Csrf double-submit cookie protection is trivially bypassable by first loading the public form to obtain a valid token, removing the only barrier to persisting malicious payloads. The vulnerability is tracked under CWE-79.

Critical Impact

Unauthenticated attackers can store arbitrary JavaScript in WordPress pages, enabling session theft, administrative account takeover, and site defacement affecting all visitors.

Affected Products

  • MW WP Form plugin for WordPress, versions up to and including 5.1.7
  • WordPress sites exposing the plugin's public form endpoints
  • Plugin component MW_WP_Form_Csrf responsible for form submission protection

Discovery Timeline

  • 2026-10-02 - CVE-2026-96567 published to NVD
  • 2026-10-03 - Last updated in NVD database

Technical Details for CVE-2026-96567

Vulnerability Analysis

The vulnerability allows an unauthenticated attacker to inject persistent script payloads through the post_id parameter of MW WP Form submissions. Because the stored data is rendered without proper escaping, injected JavaScript executes in the browser of every subsequent visitor to the affected page. This creates a watering-hole condition inside the targeted WordPress site.

The scope-changed Common Vulnerability Scoring System (CVSS) vector reflects that payloads executed in one context affect resources beyond the plugin itself, including the WordPress administrative interface. Successful exploitation can lead to administrator session hijacking, planting of persistent backdoors, and lateral movement into the site's content and user base.

Root Cause

Two defects combine to produce the vulnerability. First, the plugin accepts the post_id form parameter without sufficient input sanitization and emits it to rendered pages without output escaping, violating the standard WordPress escaping discipline. Second, the MW_WP_Form_Csrf component implements a double-submit cookie scheme that any unauthenticated client can satisfy by first requesting the public form page to receive the matching cookie and token. Together they produce an unauthenticated stored XSS primitive with no effective anti-automation barrier.

Attack Vector

An attacker loads the public-facing form page to obtain a valid double-submit CSRF cookie and token. The attacker then submits a crafted request containing a malicious post_id value carrying a JavaScript payload. The plugin stores the payload, and the script executes whenever a user, including a logged-in administrator, loads the affected page. The attack requires no authentication and no user interaction beyond ordinary page visits.

The vulnerable code paths are documented in the WordPress plugin repository, including the contact data setting class, the parser class, and the exec shortcode class. See the published fix in the plugin changeset log and the Wordfence vulnerability analysis for additional technical details.

Detection Methods for CVE-2026-96567

Indicators of Compromise

  • POST requests to MW WP Form submission endpoints containing <script>, onerror=, javascript:, or encoded script fragments inside the post_id parameter.
  • Unexpected <script> tags, iframes, or event handlers appearing inside saved form entries or rendered pages that embed stored submissions.
  • Administrator session anomalies such as new admin users, modified plugin or theme files, or unexpected outbound requests from browsers viewing affected pages.

Detection Strategies

  • Inspect web server and WordPress access logs for POST requests to form endpoints with non-numeric or HTML-bearing post_id values.
  • Scan the WordPress database tables used by MW WP Form for stored submission records containing HTML or JavaScript markup.
  • Deploy Web Application Firewall (WAF) rules that flag script-like tokens in form parameters expected to contain only integers.

Monitoring Recommendations

  • Alert on creation of new WordPress administrator accounts or privilege changes following form submission activity.
  • Monitor plugin files and the wp_options table for unauthorized modifications that commonly follow XSS-driven admin takeover.
  • Track outbound requests from authenticated admin browser sessions to unfamiliar domains, which may indicate payload callback.

How to Mitigate CVE-2026-96567

Immediate Actions Required

  • Update the MW WP Form plugin to a version released after 5.1.7 that includes the fix referenced in the plugin changeset.
  • Audit existing form submissions and page content for injected <script> tags or event handlers and remove any malicious entries.
  • Rotate WordPress administrator credentials and invalidate active sessions if the plugin was exposed prior to patching.

Patch Information

The maintainers published a fix in the MW WP Form plugin changeset addressing the input handling in the post_id parameter path. Site operators should upgrade to the fixed release through the WordPress plugin manager and confirm the active version is above 5.1.7.

Workarounds

  • Disable or uninstall the MW WP Form plugin until the patched version is deployed.
  • Restrict access to pages hosting MW WP Form submission endpoints using IP allowlists or authentication at the reverse proxy.
  • Add WAF rules that reject form submissions where post_id contains any character outside [0-9].
bash
# Example ModSecurity rule to block non-numeric post_id values on MW WP Form submissions
SecRule REQUEST_METHOD "@streq POST" \
    "id:1026096567,phase:2,deny,status:403,log,\
    msg:'CVE-2026-96567 MW WP Form post_id non-numeric',\
    chain"
  SecRule ARGS:post_id "!@rx ^[0-9]+$" "t:none"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.