# MW WP Form <= 5.1.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Meta Replacement Tags

- **ID:** WPSEC-2026-4263
- **Plugin:** MW WP Form (`mw-wp-form`), https://wordpress.org/plugins/mw-wp-form/
- **Affected versions:** all versions before 5.1.10
- **Fixed in:** 5.1.10 (Update to 5.1.10 or later.)
- **Severity:** Medium 4.9 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-11-30)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/mw-wp-form
- **Fix released:** 2026-11-29
- **Published:** 2026-11-30
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4263/

## Description

The MW WP Form plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post meta values substituted for {key} replacement tags in form content in all versions up to, and including, 5.1.9, due to insufficient output escaping. The plugin inserts the values unescaped after the form content has been filtered, and then runs the result through do_shortcode. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts that execute when a user views a page showing the form. To do this, the attacker sets a custom field on a post that shows the form, or on a post passed in the post_id URL parameter when the form's query string option is enabled. Exploitation requires that the form uses a replacement tag matching a meta key the attacker can set.

## References

- https://wpsec.com/vuln/WPSEC-2026-4263/
- https://plugins.svn.wordpress.org/mw-wp-form/tags/5.1.10/
- https://wordpress.org/plugins/mw-wp-form/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4263/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
