# Checkout Field Visibility for WooCommerce <= 2.0.0 - Authenticated (Shop Manager+) Privilege Escalation via Arbitrary Options Update

- **ID:** WPSEC-2026-3828
- **Plugin:** Checkout Field Visibility for eCommerce (`checkout-field-visibility-for-woocommerce`), https://wordpress.org/plugins/checkout-field-visibility-for-woocommerce/
- **Affected versions:** from 1.1.2 before 4.0.0
- **Fixed in:** 4.0.0 (Update to 4.0.0 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-269
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-24)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/checkout-field-visibility-for-woocommerce
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3828/

## Description

The Checkout Field Visibility for eCommerce plugin for WordPress is vulnerable to Privilege Escalation via arbitrary options update in all versions up to, and including, 2.0.0, due to a missing capability check in the save_form_data_ajax() AJAX handler (woo_checkout_form_data_ajax). The handler checks only a nonce, which is printed on the plugin's WooCommerce settings screens, and passes posted field names to update_option() after removing a '<prefix>__remove__' marker, so any option name can be written. This makes it possible for authenticated attackers with Shop Manager-level access and above to update arbitrary WordPress options, for example enabling user registration and setting the default role to administrator, and so gain administrative access to the site.

## References

- https://wpsec.com/vuln/WPSEC-2026-3828/
- https://plugins.svn.wordpress.org/checkout-field-visibility-for-woocommerce/tags/4.0.0/
- https://wordpress.org/plugins/checkout-field-visibility-for-woocommerce/

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

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.
