CVE-2021-24202
WordPress vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2021-24202) affects the Elementor Website Builder WordPress plugin versions before 3.1.4. This authenticated stored Cross-Site Scripting (XSS) vulnerability was discovered in the heading widget component. The issue was publicly disclosed on March 17, 2021, and was discovered by security researcher Ramuel Gall (WPScan).

Technical details

The vulnerability exists in the heading widget (includes/widgets/heading.php) which accepts a 'header_size' parameter. Although the element control lists a fixed set of possible HTML tags, users with Contributor or higher permissions can send a modified 'save_builder' request with this parameter set to 'script' combined with a 'title' parameter containing JavaScript. The injected JavaScript code will then be executed when the saved page is viewed or previewed. The vulnerability has been assigned a CVSS score of 6.4 (medium) and is classified as CWE-79 (WPScan).

Impact

This vulnerability allows authenticated users with Contributor or higher permissions to inject and store malicious JavaScript code that executes when other users view or preview the affected pages. This could lead to potential client-side attacks against site visitors and administrators (WPScan).

Exploitability

The vulnerability requires an authenticated user with at least Contributor-level permissions to exploit. A proof of concept exploit has been publicly documented, demonstrating how an attacker can inject JavaScript code through the heading widget's parameters (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in Elementor Website Builder version 3.1.4. Site administrators are strongly advised to update to this version or later to mitigate the risk (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-92541HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-92540HIGH7.2
  • import-users-from-csv-with-meta
NoYesSep 20, 2026
CVE-2026-86785MEDIUM5.3
  • woo-to-facebook-shop
NoNoSep 20, 2026
CVE-2026-92965LOW3.7
  • tiktok-for-business
NoYesSep 20, 2026
CVE-2026-92423LOW2.7
  • meow-gallery
NoYesSep 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management