Happy Addons for Elementor <= 3.21.0 - Insecure Direct Object Reference to Authenticated (Contributor+) Stored Cross-Site Scripting via Template Conditions
Strategic Overview
- Status
- Patched in 3.21.1
- Affected Plugin
- Happy Addons for Elementor
- Affected Version
<= 3.21.0- CVSS
- 6.4Medium
- Weakness type
- CWE-639 · Authorization Bypass Through User-Controlled Key
- CVE
CVE-2026-2918
At a glance
CVE-2026-2918 is a medium-severity Authorization Bypass Through User-Controlled Key vulnerability in the Happy Addons for Elementor WordPress plugin, affecting versions <= 3.21.0. It carries a CVSS score of 6.4 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Contributor level or above. The issue is fixed in version 3.21.1; sites on affected versions should update now. Disclosed March 2026, reported by Dmitrii Ignatyev.
Vulnerability Overview
The Happy Addons for Elementor plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 3.21.0 via the `ha_condition_update` AJAX action. This is due to the `validate_reqeust()` method using `current_user_can('edit_posts', $template_id)` instead of `current_user_can('edit_post', $template_id)` — failing to perform object-level authorization. Additionally, the `ha_get_current_condition` AJAX action lacks a capability check. This makes it possible for authenticated attackers, with Contributor-level access and above, to modify the display conditions of any published `ha_library` template. Because the `cond_to_html()` renderer outputs condition values into HTML attributes without proper escaping (using string concatenation instead of `esc_attr()`), an attacker can inject event handler attributes (e.g., `onmouseover`) that execute JavaScript when an administrator views the Template Conditions panel, resulting in Stored Cross-Site Scripting.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.
CWE-639: Authorization Bypass Through User-Controlled Key
Happy Addons for Elementor <= 3.21.0 carries this weakness at edit_posts, and reaching it takes an account at Contributor level or above. Authorization bypass through a user-controlled key, often called insecure direct object reference, means the application looks up a record by an identifier from the request without checking that the caller owns it.
Changing a number in the request is enough to read or modify other users' records, which on commerce and membership sites means customer data. For Happy Addons for Elementor the fix is 3.21.1: builds <= 3.21.0 are affected, anything from 3.21.1 onward is not.
Remediation
Update to version 3.21.1, or a newer patched version
How does WordSec protect against this?
Because it turns on account access, WordSec's login security is the relevant layer: role-based two-factor, captcha and brute-force limits raise the cost of getting the account this needs. None of that substitutes for the fix: Happy Addons for Elementor 3.21.1 closes this, and updating the plugin is the step that ends it.
- Login Security
- Alerts
External References
Related records
Same weakness class
Other vulnerabilities in Happy Addons for Elementor
- 6.5CVE-2025-68999: Happy Addons for Elementor <= 3.20.4 SQL Injection
CVE-2025-68999 - 6.4CVE-2026-1210: Happy Addons for Elementor <= 3.20.7 Stored XSS
CVE-2026-1210 - 6.4CVE-2025-14635: Happy Addons for Elementor <= 3.20.3 Stored XSS
CVE-2025-14635 - 6.4CVE-2024-5647: Multiple Plugins <= Stored DOM-Based XSS
CVE-2024-5647 - 6.4CVE-2025-30766: Happy Addons for Elementor <= 3.16.2 Stored XSS
CVE-2025-30766 - 6.4CVE-2024-12852: Happy Addons for Elementor <= 3.15.1 Stored XSS
CVE-2024-12852 - 6.4CVE-2024-10538: Happy Addons for Elementor <= 3.12.5 Stored XSS
CVE-2024-10538 - 6.4CVE-2024-47357: Happy Addons for Elementor <= 3.12.0 Stored XSS
CVE-2024-47357
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C