Elementor Website Builder <= 4.0.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via REST API

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-6127
CVSS 6.4 (Medium)
Publicly Published April 30, 2026
Last Updated May 1, 2026
Researcher Jonah Burgess (CryptoCat)

Description

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Elementor Website Builder – more than just a page builder

Software Type Plugin
Software Slug elementor (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.0.5, or a newer patched version
Affected Version
  • <= 4.0.4
Patched Version
  • 4.0.5

Recent vulnerabilities in Elementor Website Builder – more than just a page builder

# Title CVE ID CVSS Researchers Date
1 Elementor <= 4.1.3 - Authenticated (Contributor+) Sensitive Information Exposure CVE-2026-8825 4.3 Sarthak Saxena June 29, 2026
2 Elementor Website Builder – more than just a page builder <= 4.1.3 - Authenticated (Contributor+) Sensitive Information Exposure CVE-2026-57619 4.3 Steven Julian June 25, 2026
3 Elementor Website Builder – more than just a page builder <= 4.1.0 - Missing Authorization CVE-2026-49782 4.3 Bonds June 2, 2026
4 Elementor Website Builder <= 3.35.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via REST API CVE-2025-14732 6.4 andrea bocchetti April 7, 2026
5 Elementor Website Builder <= 3.35.7 - Incorrect Authorization to Authenticated (Contributor+) Sensitive Information Exposure via Elementor Template CVE-2026-1206 4.3 shark3y March 25, 2026
6 Elementor Website Builder <= 3.35.5 - Missing Authorization CVE-2026-32445 4.3 davidfdzmorilla March 7, 2026
7 Elementor Website Builder <= 3.35.5 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2026-32352 6.4 ickogz February 13, 2026
8 Elementor <= 3.33.3 - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via Text Path CVE-2025-11220 6.4 Asaf Mozes December 15, 2025
9 Elementor Website Builder <= 3.33.0 - Missing Authorization CVE-2025-67588 4.3 Bonds November 25, 2025
10 Elementor <= 3.30.2 - Authenticated (Administrator+) Arbitrary File Read via Image Import CVE-2025-8081 4.9 mikemyers August 11, 2025

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation