Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-120746: medium-severity vulnerability (CVSS 5.3) in websoudan MW WP Form.
What happened
Original description from the source: The MW WP Form plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 5.1.8 via the 'mw-wp-form_session_mw-wp-form-<FORM_ID>' parameter due to missing validation on a user controlled key. This makes it possible for unauthenticated attackers to overwrite or delete arbitrary WordPress transients in wp_options — including core-managed transients such as wp_styles_for_blocks — enabling injection of attacker-controlled CSS into every front-end page and permanent anchoring of poisoned transient values that never re-expire. The plugin's CSRF check does not prevent exploitation because MW_WP_Form_Data::__construct() registers _save_to_session() on the PHP shutdown hook before the CSRF check runs, causing the transient write to fire even after wp_safe_redirect()+exit; the GET path via the [mwform_formkey] shortcode has no CSRF check at all.
Why it matters
Medium severity, CVSS 5.3.
Affected products and versions
websoudan MW WP Form <= 5.1.8
| Product | Versions | Fixed in |
|---|---|---|
| websoudan MW WP Form | <= 5.1.8 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://www.wordfence.com/threat-intel/vulnerabilities/id/0becfaf1-7d53-4803-a255-1eeacd0566f5?source=cve — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.8/classes/models/class.session.php#L40 — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.8/classes/models/class.session.php#L99 — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.8/classes/models/class.session.php#L186 — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.8/classes/models/class.data.php#L90 — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.8/classes/models/class.data.php#L96 — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.8/classes/controllers/class.main.php#L141 — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.8/classes/services/class.exec-shortcode.php#L74 — CVE Program
- https://github.com/web-soudan/mw-wp-form/pull/55/changes — CVE Program
- https://plugins.trac.wordpress.org/browser/mw-wp-form/tags/5.1.9/classes/models/class.session.php — CVE Program
Weaknesses (CWE): CWE-639
Relevant change history
Published
Preliminary advisory published.