Better Post & Filter Widgets for Elementor <= 1.9.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Custom Target Selector Widget Settings
- ID
- WPSEC-2026-4219
- Plugin
- Better Post & Filter Widgets for Elementor (better-post-filter-widgets-for-elementor)
- Affected
- all versions before 1.9.3
- Remediation
- Update to 1.9.3 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-29
- Attack surface
- Better Post & Filter Widgets for Elementor on WPSec AttackSurface
- Fix released
- Published
Description
The Better Post & Filter Widgets for Elementor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'target_selector' (Custom Target Selector) and 'target_widget' settings of its Filter, Search Bar and Sorting widgets in all versions up to, and including, 1.9.2. This is due to insufficient input sanitization of these values. They are output unchanged into the widgets' front-end data-settings, and the plugin's front-end script then passes them to jQuery as a selector, which turns a value containing HTML markup into DOM elements. This makes it possible for authenticated attackers, with contributor-level access and above who can edit with Elementor, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
References
- https://wpsec.com/vuln/WPSEC-2026-4219/
- https://plugins.svn.wordpress.org/better-post-filter-widgets-for-elementor/tags/1.9.3/
- https://wordpress.org/plugins/better-post-filter-widgets-for-elementor/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS