Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-60160 Overview
CVE-2025-60160 is a stored Cross-Site Scripting (XSS) vulnerability in the sharkthemes Smart Related Products WordPress plugin (ai-related-products). The flaw affects all versions up to and including 2.0.8. The plugin fails to properly neutralize user-supplied input during web page generation, allowing an authenticated attacker with high privileges to inject persistent JavaScript payloads. When another user, including administrators or site visitors, loads a page containing the injected content, the script executes in their browser session. The issue is categorized under CWE-79.
Critical Impact
An authenticated attacker can inject persistent JavaScript that executes in visitor and administrator browsers, enabling session theft, credential harvesting, and further compromise of the WordPress site.
Affected Products
- sharkthemes Smart Related Products plugin for WordPress
- All plugin versions from initial release through 2.0.8
- WordPress installations with the ai-related-products plugin enabled
Discovery Timeline
- 2025-09-26 - CVE-2025-60160 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-60160
Vulnerability Analysis
The vulnerability is a stored Cross-Site Scripting flaw in the Smart Related Products plugin. The plugin accepts input through administrative fields and stores that data in the WordPress database without adequate sanitization or output encoding. When the stored content is later rendered in a web page, browsers interpret the injected markup as executable script.
Exploitation requires an authenticated account with elevated privileges and some form of user interaction to trigger the payload. Because the injection is stored, a single successful attack persists across sessions and affects every user who loads the affected page. The scope change reflected in the vulnerability metrics indicates the attack can impact resources beyond the vulnerable component, such as the browsers of other authenticated users on the same domain.
Root Cause
The root cause is improper neutralization of input during web page generation (CWE-79). The plugin does not apply WordPress sanitization functions such as sanitize_text_field() on input or esc_html() and esc_attr() on output. As a result, HTML and JavaScript metacharacters supplied through plugin-managed fields are stored verbatim and rendered without escaping.
Attack Vector
The attack vector is network-based and requires an authenticated user with high privileges. The attacker submits a crafted payload through a plugin input field. The payload is persisted in the WordPress database. When a victim navigates to a page rendering the stored data, the JavaScript executes in the victim's browser under the site's origin. Consequences include cookie exfiltration, forced administrative actions via CSRF, and drive-by redirection.
No verified proof-of-concept code is published for this CVE. Technical details are available in the Patchstack XSS Vulnerability Report.
Detection Methods for CVE-2025-60160
Indicators of Compromise
- Unexpected <script>, <iframe>, or event-handler attributes (for example onerror, onload) stored in plugin-managed database rows
- Outbound browser requests from administrator sessions to unfamiliar external domains after visiting plugin-rendered pages
- New or modified administrator accounts created shortly after an authenticated user viewed pages generated by the plugin
Detection Strategies
- Audit the WordPress wp_options and plugin-specific tables for HTML or JavaScript characters in fields managed by ai-related-products
- Deploy a Web Application Firewall (WAF) rule set that inspects POST requests to plugin admin endpoints for XSS payload patterns
- Enable a strict Content Security Policy (CSP) in report-only mode to surface script executions from unexpected inline sources
Monitoring Recommendations
- Log and review all authenticated write actions to plugin configuration endpoints under /wp-admin/
- Alert on browser console errors or CSP violation reports originating from pages rendered by Smart Related Products
- Monitor administrator session cookies for use from unexpected IP addresses or user agents
How to Mitigate CVE-2025-60160
Immediate Actions Required
- Deactivate the Smart Related Products plugin until a patched release is confirmed to be installed
- Restrict administrative and editor accounts to trusted personnel and enforce multi-factor authentication on all privileged WordPress users
- Review the plugin's stored configuration and content for injected <script> tags or event-handler attributes and remove them
Patch Information
At the time of publication, no fixed version beyond 2.0.8 is referenced in the vendor advisory linked from the NVD entry. Site operators should monitor the Patchstack advisory and the WordPress plugin repository for an update, then upgrade immediately once available.
Workarounds
- Remove or disable the ai-related-products plugin on production sites until a verified patch is applied
- Apply a WAF policy that blocks HTML and JavaScript payloads submitted to plugin administrative endpoints
- Implement a restrictive Content Security Policy that disallows inline scripts and unapproved third-party origins
# Disable the vulnerable plugin using WP-CLI
wp plugin deactivate ai-related-products
wp plugin delete ai-related-products
# Optional: add a restrictive CSP header via .htaccess
# Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

