☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Goodlayers logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 7.1 CVSS:3.1/AV:N/AC:L/PR:N/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-23521

CVE-2025-23521 Cross-Site Scripting in Goodlayers
📅 PUBLISHED: 2025-03-03 14: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.23%
👁️
0.23% probability
5.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
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 7.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
7.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-23521 is a reflected Cross-Site Scripting (XSS) vulnerability in the Goodlayers Blocks WordPress plugin, versions up to and including 1.0.1. The vulnerability arises from improper neutralization of user-supplied input during web page generation, allowing an attacker to inject arbitrary JavaScript into a reflected response. This can lead to session hijacking, credential theft, or defacement within the context of the victim's browser session on the affected WordPress site.

As this is a WordPress plugin vulnerability, the attack surface is limited to sites running the Goodlayers Blocks plugin. No public proof-of-concept (PoC) or exploit code has been released, and the patch status remains unknown. The EPSS score is 0.0%, indicating low exploitation activity in the wild, but the risk increases if the plugin is widely deployed.

⚡ 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 files and monitor for updates from the vendor. No known supply chain compromise has been reported.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
  • Base Score: 7.1 (High)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R) – victim must click a crafted link
  • Scope: Changed (S:C) – injected script can affect other resources
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: Low (A:L)

Threat Level: High. Although user interaction is required, the low complexity and network-based attack vector make this a viable target for phishing campaigns.

Deep Dive & Mechanics

The vulnerability exists in the goodlayers-blocks plugin, which provides custom Gutenberg blocks for WordPress. The plugin fails to sanitize or escape user-supplied input before reflecting it in the HTTP response. An attacker can craft a malicious URL containing a JavaScript payload in a query parameter. When a victim visits this URL, the payload executes in their browser, allowing the attacker to:

  • Steal session cookies
  • Perform actions on behalf of the victim (e.g., create admin users)
  • Redirect to malicious sites
  • Deface the page

The root cause is the use of echo or print statements with unsanitized $_GET or $_REQUEST parameters, or the use of WordPress functions like esc_html() incorrectly.

Vulnerable vs. Patched Code

Vulnerable Code (hypothetical example based on CWE-79):

<?php
// In a shortcode or block render callback
$param = $_GET['custom_param'];
echo "<div class='goodlayers-block'>" . $param . "</div>";
?>

Patched Code (expected fix):

<?php
$param = isset($_GET['custom_param']) ? sanitize_text_field($_GET['custom_param']) : '';
echo "<div class='goodlayers-block'>" . esc_html($param) . "</div>";
?>

The patch would involve using esc_html() or wp_kses() to neutralize HTML/JavaScript, and validating input against expected values.

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Setup: Install WordPress with Goodlayers Blocks plugin version 1.0.1 on a local server (e.g., XAMPP or Docker).
  2. Craft Payload: Create a URL with a reflected XSS payload:
    http://target-site.com/?goodlayers_block_param=<script>alert('XSS')</script>
    
  3. Deliver: Send the link to a victim via email or social engineering.
  4. Execute: When the victim clicks the link, the script executes in their browser.

Note: No public exploit code is available; this is a generic demonstration.

Blue Team (Detection & Defense)

  • Web Application Firewall (WAF): Deploy rules to block common XSS patterns (e.g., <script>, onerror=, javascript:).
  • Input Validation: Ensure all user inputs are sanitized and output is escaped.
  • Content Security Policy (CSP): Implement a strict CSP to block inline scripts.
  • Monitor Logs: Look for unusual query parameters containing HTML/JavaScript.

Indicators of Compromise (IOCs)

  • URL Patterns: Requests containing ?goodlayers_block_param= or similar parameters with <script> tags.
  • HTTP Response: Reflected JavaScript in the response body.
  • Log Entries: 404 errors or unusual referrer headers from phishing campaigns.
  • File Hashes: (If malicious plugin files are found) – not applicable here.

Detection Engineering

YARA Rule

rule CVE_2025_23521_Reflected_XSS {
    meta:
        description = "Detects reflected XSS attempts against Goodlayers Blocks plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-23521"
    strings:
        $payload1 = /<script[^>]*>.*?<\/script>/i
        $payload2 = /onerror\s*=\s*['\"].*?['\"]/i
        $param = "goodlayers_block_param"
    condition:
        any of ($payload*) and $param
}

Sigma Rule

title: Reflected XSS Attempt Against Goodlayers Blocks Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects HTTP requests with XSS payloads targeting Goodlayers Blocks plugin
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        c-uri|contains: "goodlayers_block_param"
        c-uri|contains: 
            - "<script"
            - "onerror="
            - "javascript:"
    condition: selection
falsepositives:
    - Legitimate use of similar parameters (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-23521 Reflected XSS in Goodlayers Blocks"; flow:to_server,established; content:"goodlayers_block_param"; http_uri; pcre:"/<script[^>]*>.*?<\/script>/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the Goodlayers Blocks plugin until a patch is available.
  2. Short-term: Implement a WAF rule to block requests containing goodlayers_block_param with suspicious patterns.
  3. Long-term: Apply input validation and output escaping in all plugin code. Use WordPress functions like esc_html(), esc_attr(), and wp_kses().
  4. Monitor: Check for updates from the vendor (Goodlayers) and apply patches as soon as released.
  5. User Education: Train users not to click suspicious links, especially those containing query parameters.

Valters IT

👁️ 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:"Goodlayers Blocks"
http.html:"goodlayers-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-23521/ · 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.