# Dynamic Visibility for Elementor <= 6.0.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Query Control

- **ID:** WPSEC-2026-1274
- **Plugin:** Dynamic Visibility for Elementor (`dynamic-visibility-for-elementor`), https://wordpress.org/plugins/dynamic-visibility-for-elementor/
- **Affected versions:** all versions before 6.0.7
- **Fixed in:** 6.0.7 (Update to 6.0.7 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/dynamic-visibility-for-elementor
- **Fix released:** 2026-10-19
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1274/

## Description

The Dynamic Visibility for Elementor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Query Control (ooo_query) used in element visibility settings in all versions up to, and including, 6.0.6, due to insufficient output escaping. The control template prints option labels without escaping, select2 markup escaping is turned off, and the quick-edit link is built by joining the stored control value into HTML. For some query types, such as Post Field and User Field, the option label is the stored control value itself. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts into an element's visibility settings. The scripts run when another user, such as an administrator, edits that page in the Elementor editor.

## References

- https://wpsec.com/vuln/WPSEC-2026-1274/
- https://plugins.svn.wordpress.org/dynamic-visibility-for-elementor/tags/6.0.7/
- https://wordpress.org/plugins/dynamic-visibility-for-elementor/

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

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.
