Elementor Website Builder <= 4.0.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via REST API
Strategic Overview
- Status
- Patched in 4.0.5
- Affected Plugin
- Elementor Website Builder – more than just a page builder
- Affected Version
<= 4.0.4- CVSS
- 6.4Medium
- Weakness type
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CVE
CVE-2026-6127
At a glance
CVE-2026-6127 is a medium-severity Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in the Elementor Website Builder WordPress plugin, affecting versions <= 4.0.4. It carries a CVSS score of 6.4 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Contributor level or above. The issue is fixed in version 4.0.5; sites on affected versions should update now. Disclosed April 2026, reported by Jonah Burgess (CryptoCat).
Vulnerability Overview
The Elementor Website Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the _elementor_data meta field in versions up to, and including, 4.0.4. This is due to insufficient input sanitization when processing form-encoded REST API requests. The plugin registers the _elementor_data meta field with show_in_rest but omits a sanitize_callback, relying instead on a rest_pre_insert_post filter (sanitize_post_data function) that only sanitizes JSON-encoded request bodies. When a contributor sends a form-encoded PATCH request to the WordPress REST API, the json_decode() call on the raw body returns null, causing all sanitization to be skipped. The unsanitized data is then stored via update_post_meta() and later output without escaping through multiple widget sinks including the HTML widget's print_unescaped_setting() function. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Elementor Website Builder <= 4.0.4 carries this weakness at json_decode(), and reaching it takes an account at Contributor level or above. Cross-site scripting happens when input from a request is written into a page without being escaped for the context it lands in, so the browser parses attacker-supplied text as markup or script.
Injected script runs with the privileges of whoever views the affected page, which is how these flaws turn into administrator session theft, silent account creation or persistent backdoors in page content. For Elementor Website Builder the fix is 4.0.5: builds <= 4.0.4 are affected, anything from 4.0.5 onward is not.
Remediation
Update to version 4.0.5, or a newer patched version
How does WordSec protect against this?
An attacker needs Contributor access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Elementor Website Builder 4.0.5 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Same weakness class
- 7.2CVE-2020-7109: Elementor Website Builder <= 2.8.3 Cross-Site Scripting
CVE-2020-7109 - 6.4CVE-2026-32352: Elementor Website Builder <= 3.35.5 Stored XSS
CVE-2026-32352 - 6.4CVE-2025-11220: Elementor <= 3.33.3 Stored DOM-Based XSS
CVE-2025-11220 - 6.4CVE-2025-3075: Elementor <= 3.29.0 Stored Cross-Site Scripting
CVE-2025-3075
Other vulnerabilities in Elementor Website Builder – more than just a page builder
- 8.8CVE-2024-24934: Elementor Arbitrary File Deletion and PHAR
CVE-2024-24934 - 8.8CVE-2023-48777: Elementor <= 3.18.1 Arbitrary File Upload to RCE
CVE-2023-48777 - 8.8CVE-2022-1329: Elementor Website Builder 3.6.0 - 3.6.2 RCE
CVE-2022-1329 - 8.8CVE-2020-7055: Elementor Website Builder Arbitrary File Upload
CVE-2020-7055 - 8.8CVE-2017-18596: Elementor Website Builder Missing Authorization
CVE-2017-18596 - 6.6CVE-2023-0329: Elementor <= 3.12.1 SQL Injection
CVE-2023-0329 - 6.5CVE-2023-47504: Elementor Website Builder Arbitrary Attachment Read
CVE-2023-47504 - 6.5CVE-2020-20634: Elementor Website Builder Authorization Bypass
CVE-2020-20634
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C