☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-5571

CVE-2024-5571 Cross-Site Scripting in Embedpress
📅 PUBLISHED: 2024-06-05 08:33 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.23%
👁️
0.23% probability
5.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-5571 is a Stored Cross-Site Scripting (XSS) vulnerability in the EmbedPress WordPress plugin, affecting versions up to and including 4.0.1. The flaw resides in the plugin's PDF widget, specifically within the url attribute. Insufficient input sanitization and output escaping allow authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. When a user accesses a page containing the maliciously crafted widget, the injected script executes in the context of the victim's browser. This can lead to session hijacking, credential theft, or defacement. The vulnerability is part of the WordPress ecosystem and does not affect Apache or Nginx directly.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the EmbedPress WordPress plugin, which is distributed via the official WordPress plugin repository. Users should verify the integrity of their plugin files and ensure they are sourced from trusted channels. No known supply chain compromise has been reported, but the lack of a patch increases risk for sites using this plugin.

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:L
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: Required (Victim must visit the page)
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

The threat level is elevated due to the low barrier for exploitation (authenticated contributor) and the potential for widespread impact across WordPress sites using the plugin.

Deep Dive & Mechanics

The vulnerability is a classic Stored XSS in the WordPress ecosystem. The EmbedPress plugin provides a Gutenberg/Elementor widget for embedding PDFs. The url attribute is used to specify the PDF source. Due to insufficient input sanitization and output escaping, an attacker can inject malicious JavaScript code into the url attribute.

Attack Flow:

  1. An authenticated user with contributor-level access creates or edits a post/page.
  2. The attacker inserts the EmbedPress PDF widget and sets the url attribute to a malicious payload, e.g., javascript:alert('XSS') or a data URI containing JavaScript.
  3. The plugin stores the payload in the database without proper sanitization.
  4. When any user (including administrators) views the page, the payload is rendered and executed in the browser.

Root Cause: The plugin fails to validate and escape the url attribute before outputting it in the HTML. This is a common WordPress plugin vulnerability (CWE-79).

Vulnerable vs. Patched Code

Vulnerable Code (<= 4.0.1):

// In the widget render function
$url = $settings['url'];
echo '<a href="' . $url . '">View PDF</a>';

The $url is directly echoed without escaping.

Patched Code (Hypothetical):

// In the widget render function
$url = esc_url($settings['url']);
echo '<a href="' . $url . '">View PDF</a>';

The esc_url() function sanitizes the URL, preventing JavaScript injection.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with EmbedPress plugin <= 4.0.1
  • Contributor-level account or higher

Exploit Steps:

  1. Log in as a contributor.
  2. Create a new post or edit an existing one.
  3. Add the EmbedPress PDF widget.
  4. In the url field, enter a malicious payload such as:
    javascript:alert(document.cookie)
    
    or a data URI:
    data:text/html,<script>alert('XSS')</script>
    
  5. Publish or save the post.
  6. When an administrator or other user views the post, the script executes.

Proof of Concept (PoC) Code:

<!-- Example payload for the url attribute -->
javascript:alert('XSS')

Blue Team (Detection & Hardening)

Detection:

  • Monitor for posts/pages containing suspicious url attributes in the EmbedPress widget.
  • Use Web Application Firewall (WAF) rules to block known XSS payloads in URL parameters.

Hardening:

  • Disable the EmbedPress plugin until a patch is available.
  • Restrict contributor-level access to trusted users only.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/embedpress/ (presence of vulnerable version)
  • Database: Posts/pages with url attribute containing javascript: or data: URIs
  • Logs: HTTP requests to pages containing the malicious widget
  • Network: Outbound connections from injected scripts (e.g., to attacker-controlled servers)

Detection Engineering

YARA Rule

rule CVE_2024_5571_EmbedPress_XSS {
    meta:
        description = "Detects malicious url attribute in EmbedPress PDF widget"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-5571"
    strings:
        $xss_payload = /url\s*=\s*["']\s*(javascript|data):/i
    condition:
        $xss_payload
}

Sigma Rule

title: CVE-2024-5571 EmbedPress Stored XSS
id: 8a9b3c2d-1e5f-4a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects stored XSS via EmbedPress PDF widget url attribute
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: 
            - 'javascript:'
            - 'data:text/html'
    condition: selection
falsepositives:
    - Legitimate use of data URIs (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-5571 EmbedPress Stored XSS Attempt"; flow:to_server,established; content:"/wp-json/wp/v2/posts"; http_uri; content:"url"; http_client_body; pcre:"/(javascript|data):/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if not critical to operations.
  2. Restrict contributor roles to only trusted users.
  3. Implement a WAF to block XSS payloads in post content.

Long-term Fix:

  • Apply the official patch once released by the vendor.
  • Upgrade to a patched version (currently unavailable).
  • Consider replacing the plugin with an alternative that is actively maintained.

Valters IT Signature:

Valters IT
Senior DevSecOps Engineer
Cyber Threat Intelligence Expert
👁️ SHODAN DORKS (THREAT HUNTING)

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.

http.html:"wp-content/plugins/embedpress"
http.html:"embedpress" "wp-content"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-5571/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.