CVE-2026-6127
Stored Cross-Site Scripting in Elementor Website Builder for WordPress
Publication date: 2026-05-01
Last updated on: 2026-05-01
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| elementor | website_builder | to 4.0.4 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability affects the Elementor Website Builder plugin for WordPress, specifically versions up to and including 4.0.4. It is a Stored Cross-Site Scripting (XSS) issue that arises because the plugin does not properly sanitize input when processing form-encoded REST API requests.
The plugin registers a meta field called _elementor_data with the REST API but fails to provide a sanitize callback for it. Instead, it relies on a filter that sanitizes only JSON-encoded request bodies. When a contributor sends a form-encoded PATCH request, the sanitization is skipped because the JSON decoding fails, allowing unsanitized data to be stored.
This unsanitized data is then output without escaping in various widget areas, including the HTML widget, enabling an attacker with contributor-level access or higher to inject malicious scripts that execute when users view the affected pages.
How can this vulnerability impact me? :
This vulnerability can allow an authenticated attacker with contributor-level access or higher to inject arbitrary malicious scripts into pages built with the Elementor plugin.
These scripts execute in the browsers of users who visit the infected pages, potentially leading to theft of sensitive information, session hijacking, defacement, or distribution of malware.
Because the vulnerability requires contributor-level access, it may be exploited by insiders or compromised accounts, increasing the risk of persistent and hard-to-detect attacks.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The vulnerability allows authenticated contributors to inject arbitrary web scripts via stored cross-site scripting (XSS) in the Elementor Website Builder plugin. This can lead to unauthorized script execution when users access affected pages.
Such unauthorized script execution can potentially lead to data exposure or manipulation, which may impact the confidentiality and integrity of user data.
While the provided information does not explicitly mention compliance with standards like GDPR or HIPAA, vulnerabilities that enable unauthorized data access or manipulation can pose risks to compliance with these regulations, which require protection of personal and sensitive data.