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

CVE-2025-2918 Cross-Site Scripting in Ultimate blocks
📅 PUBLISHED: 2025-06-10 11:22 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.18%
👁️
0.18% probability
4.4× 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-2918 is a Stored Cross-Site Scripting (XSS) vulnerability in the Ultimate Blocks – WordPress Blocks Plugin for WordPress. The flaw exists in all versions up to and including 3.3.3, affecting multiple widgets provided by the plugin. 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 victim user accesses the compromised page, leading to session hijacking, data theft, or defacement.

This vulnerability is specific to the WordPress ecosystem and does not involve Apache or Nginx directly. The plugin’s widgets fail to properly sanitize user-supplied input before storing it in the database, and the output is not escaped when rendered, enabling persistent XSS.

⚡ 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 is 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’s update mechanism; users must manually update or rely on the WordPress dashboard. No known malicious commits or backdoors have been reported in the plugin’s source.

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 vulnerability requires authentication but is trivial to exploit once access is obtained. The impact is limited to low confidentiality and integrity loss, but the stored XSS can be used to pivot to higher-privilege accounts.

Deep Dive & Mechanics

The vulnerability resides in the widget rendering logic of the Ultimate Blocks plugin. Multiple widgets (e.g., “Advanced Heading”, “Image Slider”, “Button”) accept user input via the WordPress block editor. The plugin fails to sanitize input using functions like wp_kses_post() or sanitize_text_field() and does not escape output with esc_html() or wp_kses() when rendering the block on the front end.

Attack Flow:

  1. An authenticated user with Contributor-level access creates or edits a post/page using the Ultimate Blocks plugin.
  2. The attacker inserts malicious JavaScript into a widget field (e.g., the heading text or button label).
  3. The plugin stores the unsanitized payload in the wp_posts table as part of the block content.
  4. When any user (including administrators) views the page, the injected script executes in their browser context.

Root Cause: The plugin uses echo $value or similar direct output without escaping, and does not apply WordPress’s built-in sanitization functions before saving.

Vulnerable vs. Patched Code

Since no patch is available, the following shows the vulnerable pattern and a hypothetical fix.

Vulnerable Code (example from widget render function):

function render_heading_block($attributes) {
    $heading_text = $attributes['headingText'];
    // No sanitization or escaping
    return "<h2>$heading_text</h2>";
}

Patched Code (hypothetical):

function render_heading_block($attributes) {
    $heading_text = isset($attributes['headingText']) ? $attributes['headingText'] : '';
    // Sanitize on input
    $heading_text = sanitize_text_field($heading_text);
    // Escape on output
    return "<h2>" . esc_html($heading_text) . "</h2>";
}

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with Ultimate Blocks plugin <= 3.3.3
  • Contributor-level account credentials

Exploitation Steps:

  1. Log in as a Contributor.
  2. Create a new post and add an Ultimate Blocks widget (e.g., “Advanced Heading”).
  3. In the heading text field, inject the following payload:
    <img src=x onerror=alert('XSS')>
    
  4. Publish or save the post.
  5. When an administrator or visitor views the post, the script executes.

Advanced Payload (session hijacking):

<script>
fetch('/wp-admin/admin-ajax.php?action=your_custom_action', {
    method: 'POST',
    credentials: 'include',
    body: new URLSearchParams({ 'cookie': document.cookie })
});
</script>

Blue Team

Detection Steps:

  1. Monitor for posts created by Contributor-level users containing suspicious HTML/JavaScript in block content.
  2. Review database entries in wp_posts for post_content containing <script> tags or event handlers.
  3. Use the YARA and Sigma rules below to scan logs and files.

Mitigation in Lab:

  • Disable the Ultimate Blocks plugin until a patch is available.
  • Restrict Contributor-level access to trusted users only.
  • Implement a Web Application Firewall (WAF) rule to block common XSS payloads.

Indicators of Compromise (IOCs)

  • File Indicators:

    • Plugin directory: /wp-content/plugins/ultimate-blocks/
    • Version file: ultimate-blocks/readme.txt (contains version string)
  • Network Indicators:

    • Outbound HTTP requests to attacker-controlled domains from compromised pages.
    • POST requests to /wp-admin/admin-ajax.php with suspicious parameters.
  • Database Indicators:

    • wp_posts.post_content containing <script>, onerror, onload, or javascript:.
    • wp_postmeta entries with malicious meta values.
  • Log Indicators:

    • Web server access logs showing requests to pages with Ultimate Blocks widgets.
    • Error logs with PHP warnings about undefined array keys (if exploitation attempts fail).

Detection Engineering

YARA Rule

rule CVE_2025_2918_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in Ultimate Blocks plugin content"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-2918"
    strings:
        $xss1 = /<script[^>]*>.*<\/script>/is
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+/is
        $xss3 = /onload\s*=\s*["']?[^"'\s>]+/is
        $xss4 = /javascript\s*:\s*/is
    condition:
        any of ($xss*) and filesize < 10MB
}

Sigma Rule

title: CVE-2025-2918 Stored XSS in Ultimate Blocks Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS payloads in WordPress post content for Ultimate Blocks plugin
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/wp-admin/post.php'
        cs-uri-query|contains: 'action=edit'
        cs-uri-query|contains: 'post='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in posts by administrators
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-2918 Stored XSS Payload in WordPress Post"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"action=edit"; http_uri; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released by the vendor.
  2. Review all posts created by Contributor-level users for malicious content.
  3. Change all user passwords if any administrator accounts were compromised.

Long-Term Fixes:

  • Apply input sanitization using sanitize_text_field() or wp_kses_post().
  • Use output escaping functions like esc_html(), esc_attr(), or wp_kses().
  • Implement Content Security Policy (CSP) headers to block inline scripts.
  • Restrict Contributor-level access to only trusted users.

Vendor Contact:

  • No official patch available. Monitor the WordPress plugin repository for updates.

Valters IT – DevSecOps & Cyber Threat Intelligence

👁️ 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:"Ultimate Blocks"
http.html:"wp-content/plugins/ultimate-blocks"

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