# Flexmls® IDX Plugin <= 4.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via IDX Search Shortcode Attributes

- **ID:** WPSEC-2026-3917
- **Plugin:** Flexmls® IDX Plugin (`flexmls-idx`), https://wordpress.org/plugins/flexmls-idx/
- **Affected versions:** all versions before 4.2.1
- **Fixed in:** 4.2.1 (Update to 4.2.1 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 Low, affected versions Low (as of 2026-11-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/flexmls-idx
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3917/

## Description

The Flexmls® IDX Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the IDX Search shortcode's attributes (such as orientation, the colour attributes like field_text_color, title_text_color, detailed_search_text_color and submit_button_background, and detailed_search_text) in all versions up to, and including, 4.2, due to insufficient input sanitization and output escaping. The values are printed into class and style attributes and markup without escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-3917/
- https://plugins.svn.wordpress.org/flexmls-idx/tags/4.2.1/
- https://wordpress.org/plugins/flexmls-idx/

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

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.
