Elementor Website Builder Stored Cross-Site Scripting Vulnerability

Vulnerability

A stored cross-site scripting vulnerability has been identified in the Elementor Website Builder plugin for WordPress, affecting versions through 4.0.4. The issue arises from inadequate input sanitization when handling form-encoded REST API requests. The plugin registers the '_elementor_data' meta field to be accessible via the REST API but fails to include a proper sanitization callback. Instead, it relies on a filter that only processes JSON-encoded data. As a result, when a contributor-level user sends a form-encoded PATCH request, the data is not sanitized before being saved, allowing for the injection of malicious scripts that are executed when the page is accessed.

Impact

Exploitation of this vulnerability allows authenticated users with contributor-level access to inject and execute arbitrary scripts on the site.

Reproduction

To reproduce this vulnerability, an authenticated user with contributor-level access can send a form-encoded PATCH request to the WordPress REST API. The request must include the '_elementor_data' meta field with unsanitized data, such as a script tag. Once the request is processed, the injected script will be executed when the page is viewed.

Remediation

Users can update the Elementor Website Builder plugin to version 4.0.5 or later, where this vulnerability has been addressed.

Added: May 1, 2026, 6:48 AM
Updated: May 1, 2026, 6:48 AM

Vulnerability Rating

Custom Algorithm
spread
7.6
impact
1.7
exploitability
6.2
remediation
7.7
relevance
7.2
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.