CVE-2021-24202
Published: April 11, 2026
Official Description
In the Elementor Website Builder WordPress plugin before 3.1.4, the heading widget (includes/widgets/heading.php) accepts a ‘header_size’ parameter. Although the element control lists a fixed set of possible html tags, it is possible for a user with Contributor or above permissions to send a modified ‘save_builder’ request with this parameter set to ‘script’ and combined with a ‘title’ parameter containing JavaScript, which will then be executed when the saved page is viewed or previewed.
Risk Analysis
A cross-site scripting (XSS) vulnerability exists in the Elementor Website Builder WordPress plugin's heading widget. Users with Contributor-level permissions or higher can inject malicious JavaScript, which executes when the saved page is viewed or previewed. This vulnerability is actively exploited, posing a risk of session hijacking or defacement.
This vulnerability is actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities Catalog. This confirms that attackers are leveraging this flaw.
Upgrade the Elementor Website Builder WordPress plugin to version 3.1.4 or later. Ensure that all user-supplied input, especially in content creation, is properly sanitized and escaped.
Technical Analysis
CVE-2021-24202 requires local access, meaning attackers must already have a foothold on the target system.
Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
CISA has added CVE-2021-24202 to the Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild. U.S. federal agencies are required to patch this within the mandated timeframe, and all organizations should treat remediation as urgent.
Affected Vendors & Products
Exploit & PoC Resources
Quick Facts
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2021-24202 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts
- !CISA KEV: Federal agencies must patch per BOD 22-01 timeline
- !Active exploitation confirmed — treat as P1