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
CVE-2026-6127 is a stored cross-site scripting (XSS) vulnerability in the Elementor Website Builder plugin for WordPress, affecting versions up to and including 4. 0. 4. The vulnerability arises from insufficient input sanitization of the _elementor_data meta field when processing form-encoded REST API requests. Authenticated users with contributor-level access or higher can exploit this flaw by sending specially crafted PATCH requests that bypass sanitization, allowing them to inject arbitrary scripts into pages. These scripts execute whenever any user accesses the compromised page. The vulnerability has a CVSS score of 6. 4, indicating medium severity. No official patch or remediation guidance is currently available from the vendor, and no known exploits in the wild have been reported.
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
CVE-2026-6127 is a stored cross-site scripting (XSS) vulnerability in the Elementor Website Builder plugin for WordPress, affecting versions up to and including 4. 0. 4. The vulnerability arises from insufficient input sanitization of the _elementor_data meta field when processing form-encoded REST API requests. Authenticated users with contributor-level access or higher can exploit this flaw by sending specially crafted PATCH requests that bypass sanitization, allowing them to inject arbitrary scripts into pages. These scripts execute whenever any user accesses the compromised page. The vulnerability has a CVSS score of 6. 4, indicating medium severity. No official patch or remediation guidance is currently available from the vendor, and no known exploits in the wild have been reported.
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: 5/1/2026, 8:12:16 AM
Views: 5
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.