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

- **ID:** WPSEC-2026-3919
- **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-3919/

## Description

The Flexmls® IDX Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'lead_generation' shortcode's attributes (such as widget_id, buttontext, title, blurb, before_title and after_title) in all versions up to, and including, 4.2, due to insufficient input sanitization and output escaping. The values are placed into the form's HTML 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-3919/
- 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-3919/

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.
