Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-2918: CWE-639 Authorization Bypass Through User-Controlled Key in thehappymonster Happy Addons for Elementor

0
Medium
VulnerabilityCVE-2026-2918cvecve-2026-2918cwe-639
Published: Wed Mar 11 2026 (03/11/2026, 07:36:23 UTC)
Source: CVE Database V5
Vendor/Project: thehappymonster
Product: Happy Addons for Elementor

Description

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/09/2026, 22:06:43 UTC

Technical Analysis

CVE-2026-2918 affects the Happy Addons for Elementor plugin for WordPress through insecure direct object references in the `ha_condition_update` and `ha_get_current_condition` AJAX actions. The vulnerability arises because the `validate_reqeust()` method incorrectly uses `current_user_can('edit_posts', $template_id)` instead of the correct `current_user_can('edit_post', $template_id)`, failing to enforce object-level authorization. Furthermore, the `ha_get_current_condition` action lacks any capability check. Authenticated users with Contributor or higher privileges can exploit this to modify display conditions of any published `ha_library` template. The `cond_to_html()` function outputs these conditions into HTML attributes without proper escaping, enabling stored cross-site scripting via injected event handler attributes that execute JavaScript when an administrator views the Template Conditions panel. The CVSS 3.1 base score is 6.4 (medium severity), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, and partial confidentiality and integrity impact.

Potential Impact

An attacker with Contributor-level or higher access can bypass authorization controls to modify display conditions of published templates, potentially altering site behavior. The stored XSS vulnerability allows execution of arbitrary JavaScript in the context of an administrator viewing the Template Conditions panel, which could lead to session hijacking or further compromise. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict Contributor-level access to trusted users only. Monitor updates from thehappymonster for an official patch addressing the authorization bypass and stored XSS issues. Avoid administrators accessing the Template Conditions panel from untrusted environments to reduce risk of stored XSS exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-02-20T21:49:53.519Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69b121032f860ef9435ba54e

Added to database: 3/11/2026, 8:00:03 AM

Last enriched: 4/9/2026, 10:06:43 PM

Last updated: 4/25/2026, 4:47:18 AM

Views: 83

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses