CVE-2026-120746: MW WP Form <= 5.1.8 - Insecure Direct Object Reference to Unauthenticated Arbitrary Transient Overwrite and Deletion via 'mw-wp-form_session_mw-wp-form-<FORM_ID>' Cookie
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-formsessionmw-wp-form-<FORMID>' 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 wpoptions — including core-managed transients such as wpstylesforblocks — 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 MWWPFormData::construct() registers savetosession() on the PHP shutdown hook before the CSRF check runs, causing the transient write to fire even after wpsaferedirect()+exit; the GET path via the [mwformformkey] shortcode has no CSRF check at all.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Unauthenticated remote attackers can exploit it. No privileges or user interaction are required, and the affected cookie parameter is user controlled.
Are sites affected through normal front-end form handling?
Yes. The GET path exposed through the [mwform_formkey] shortcode has no CSRF check, and the transient write is registered before the plugin's CSRF check runs.
What can an attacker change?
An attacker can overwrite or delete arbitrary WordPress transients stored in wp_options. This includes core-managed transients such as wp_styles_for_blocks, which can be used to inject attacker-controlled CSS into front-end pages.
Why might the impact persist after the initial request?
Poisoned transient values can be anchored so that they never expire. As a result, affected transient data may remain in place until it is manually identified and removed or overwritten.
How can administrators check for possible impact?
Review WordPress transient entries in wp_options for unexpected or altered values, particularly core-managed entries such as wp_styles_for_blocks. Also inspect front-end pages for unexpected CSS that could indicate a modified styles transient.