CVE-2026-6127: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in elemntor Elementor Website Builder – more than just a page builder
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.
AI Analysis
Technical Summary
The Elementor Website Builder plugin improperly neutralizes input during web page generation, specifically in the _elementor_data meta field. This occurs because the plugin registers this meta field with show_in_rest but does not specify a sanitize_callback, relying instead on a rest_pre_insert_post filter that only sanitizes JSON-encoded request bodies. When a contributor sends a form-encoded PATCH request, json_decode() fails, causing sanitization to be skipped. Unsanitized data is stored via update_post_meta() and later output without escaping in multiple widget sinks, including the HTML widget's print_unescaped_setting() function. This allows authenticated contributors or higher to inject stored XSS payloads that execute in users' browsers when viewing the affected pages.
Potential Impact
An attacker with contributor-level or higher privileges can inject malicious JavaScript into pages via the REST API, which is then stored and executed in the context of any user viewing those pages. This can lead to theft of user credentials, session hijacking, or other malicious actions performed in the victim's browser. The vulnerability does not affect availability and requires authentication, limiting its scope. No known active exploitation has been reported.
Mitigation Recommendations
No official patch or remediation is currently available. Users should monitor the vendor's advisory channels for updates. Until a fix is released, restrict contributor-level access to trusted users only and consider disabling or limiting REST API access if feasible. Review and sanitize any user-generated content manually where possible. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-6127: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in elemntor Elementor Website Builder – more than just a page builder
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.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Elementor Website Builder plugin improperly neutralizes input during web page generation, specifically in the _elementor_data meta field. This occurs because the plugin registers this meta field with show_in_rest but does not specify a sanitize_callback, relying instead on a rest_pre_insert_post filter that only sanitizes JSON-encoded request bodies. When a contributor sends a form-encoded PATCH request, json_decode() fails, causing sanitization to be skipped. Unsanitized data is stored via update_post_meta() and later output without escaping in multiple widget sinks, including the HTML widget's print_unescaped_setting() function. This allows authenticated contributors or higher to inject stored XSS payloads that execute in users' browsers when viewing the affected pages.
Potential Impact
An attacker with contributor-level or higher privileges can inject malicious JavaScript into pages via the REST API, which is then stored and executed in the context of any user viewing those pages. This can lead to theft of user credentials, session hijacking, or other malicious actions performed in the victim's browser. The vulnerability does not affect availability and requires authentication, limiting its scope. No known active exploitation has been reported.
Mitigation Recommendations
No official patch or remediation is currently available. Users should monitor the vendor's advisory channels for updates. Until a fix is released, restrict contributor-level access to trusted users only and consider disabling or limiting REST API access if feasible. Review and sanitize any user-generated content manually where possible. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-12T03:00:21.594Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f43f5bcbff5d86106a077e
Added to database: 5/1/2026, 5:51:23 AM
Last enriched: 5/1/2026, 6:06:32 AM
Last updated: 6/15/2026, 10:31:09 AM
Views: 86
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.