CVE-2025-67952
Executive Summary
CVE-2025-67952 is a reflected Cross-Site Scripting (XSS) vulnerability in the WordPress theme "Grand Tour" by ThemeGoods. The flaw exists in versions prior to 5.6.2, where user-supplied input is not properly neutralized during web page generation. An attacker can craft a malicious URL that, when visited by an authenticated administrator, executes arbitrary JavaScript in the context of the WordPress admin panel. This can lead to session hijacking, privilege escalation, or defacement. The CVSS score is 7.1 (High), and no public exploit code or patch is currently available. The vendor has not responded to disclosure attempts.
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 theme distributed via ThemeForest and the ThemeGoods website. Users who installed the theme via the WordPress admin panel or manual upload are at risk. No package manager (NPM, PyPI, Go, Ruby) is involved, but the theme may include bundled JavaScript libraries that could be leveraged in an attack. Verify the integrity of the theme files by comparing checksums with the official source.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The vulnerability is exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed to trigger the XSS.
- User Interaction (UI): Required (R) – The victim must click a crafted link.
- Scope (S): Changed (C) – The XSS can impact resources beyond the vulnerable component (e.g., admin session).
- Confidentiality (C): Low (L) – Limited data exposure possible.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): Low (L) – Minor disruption possible.
Threat Level: High. Reflected XSS in a WordPress theme can lead to full site compromise if an admin is targeted.
Deep Dive & Mechanics
The vulnerability resides in the grandtour theme's handling of URL parameters. When a user visits a URL like:
https://example.com/?page_id=123&search=<script>alert('XSS')</script>
The theme reflects the search parameter value directly into the HTML output without proper sanitization or encoding. This occurs in the theme's search functionality or a similar template that echoes user input.
The attack flow:
- Attacker crafts a malicious URL containing JavaScript payload.
- Attacker sends the URL to a victim (e.g., via email, social media).
- Victim clicks the link while authenticated to the WordPress admin panel.
- The browser executes the attacker's script in the context of the victim's session.
- The script can steal cookies, perform actions on behalf of the admin, or inject malicious content.
Vulnerable vs. Patched Code
Vulnerable Code (version < 5.6.2):
// In search.php or similar template
echo '<div class="search-result">' . $_GET['search'] . '</div>';
Patched Code (version 5.6.2+):
// Properly escape output
echo '<div class="search-result">' . esc_html( $_GET['search'] ) . '</div>';
The fix uses WordPress's esc_html() function to encode HTML entities, preventing script execution.
Exploitation & Lab Setup
Red Team
Prerequisites:
- A WordPress site running Grand Tour theme < 5.6.2.
- A victim with admin privileges.
Exploit Steps:
- Identify a vulnerable parameter (e.g.,
search,s,q). - Craft a payload:
<script>fetch('/wp-admin/admin-ajax.php?action=add_admin&user=attacker&pass=evilpass');</script> - URL-encode the payload and construct the malicious link:
https://target.com/?search=%3Cscript%3Efetch('%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dadd_admin%26user%3Dattacker%26pass%3Devilpass')%3C%2Fscript%3E - Send the link to the victim via phishing email or social engineering.
- Once the victim clicks, the script executes, creating a new admin user.
Note: No public exploit code is available; this is a conceptual demonstration.
Blue Team
Detection:
- Monitor web server logs for requests containing
<script>tags or encoded equivalents in query parameters. - Use WAF rules to block common XSS patterns (e.g.,
<script,onerror=,javascript:). - Deploy Content Security Policy (CSP) headers to restrict script execution.
Hunting:
- Search for unusual admin user creation events.
- Review recent changes to WordPress user roles and capabilities.
- Check for unexpected outbound connections from the web server.
Indicators of Compromise (IOCs)
- Network:
- HTTP requests with
search=parameter containing<script>or%3Cscript%3E. - Referer headers from phishing domains.
- HTTP requests with
- Host:
- New admin users created in
wp_userstable. - Modified
.htaccessorwp-config.phpfiles. - Suspicious JavaScript files in
wp-content/uploads/.
- New admin users created in
- Logs:
- Repeated 404 errors on non-existent pages with XSS payloads.
- Unusual
admin-ajax.phpcalls withaction=add_adminor similar.
Detection Engineering
YARA Rule
rule CVE_2025_67952_Reflected_XSS {
meta:
description = "Detects reflected XSS attempts targeting Grand Tour theme"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-67952"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$encoded_xss = /%3Cscript%3E.*%3C\/script%3E/i
$grand_tour_param = /[?&](search|s|q)=/
condition:
any of ($xss_payload, $encoded_xss) and $grand_tour_param
}
Sigma Rule
title: Reflected XSS Attempt Against Grand Tour Theme
id: 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
status: experimental
description: Detects HTTP requests with XSS payloads in query parameters targeting Grand Tour theme
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'GET'
cs-uri-query|contains:
- '<script'
- '%3Cscript%3E'
- 'onerror='
- 'javascript:'
cs-uri-query|contains|all:
- 'search='
- 'grandtour'
condition: selection
falsepositives:
- Legitimate search queries containing '<' characters
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-67952 Reflected XSS in Grand Tour Theme"; flow:to_server,established; content:"GET"; http_method; content:"search="; http_uri; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Upgrade the Grand Tour theme to version 5.6.2 or later if available.
- Apply a virtual patch using a WAF to block XSS patterns in query parameters.
- Disable the vulnerable search functionality temporarily by modifying the theme's template files.
Long-term Measures:
- Implement a Content Security Policy (CSP) with
script-src 'self'to prevent inline script execution. - Regularly update all WordPress themes and plugins.
- Conduct security audits of custom code for proper input validation and output encoding.
- Use WordPress security plugins (e.g., Wordfence, Sucuri) to add additional layers of defense.
Workaround:
If upgrading is not possible, edit the theme's search.php file to wrap all echoed $_GET parameters with esc_html().
Valters IT
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.