CVE-2024-8714 Overview
CVE-2024-8714 is a Reflected Cross-Site Scripting (XSS) vulnerability in the SliceWP Affiliates plugin for WordPress. The flaw affects all versions up to and including 1.1.20. It stems from the use of remove_query_arg without proper escaping of the returned URL. Unauthenticated attackers can inject arbitrary JavaScript that executes in a victim's browser if the victim clicks a crafted link. The vulnerability is tracked under CWE-79 (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in an authenticated administrator's browser context, enabling session theft, account takeover, or administrative action hijacking on affected WordPress sites.
Affected Products
- SliceWP Affiliates plugin for WordPress, all versions through 1.1.20
- WordPress sites running the SliceWP Affiliate Program Suite
- Administrative pages for commissions, payments, and visits list tables
Discovery Timeline
- 2024-09-13 - CVE-2024-8714 published to the National Vulnerability Database
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2024-8714
Vulnerability Analysis
The vulnerability resides in administrative list table components of the SliceWP plugin. Affected files include class-list-table-commissions.php, class-list-table-payments.php, and class-list-table-visits.php. Each file calls WordPress's remove_query_arg function and emits the result into page output without applying the required escaping routine.
The remove_query_arg function returns the current request URI with specified query parameters stripped. However, it does not sanitize other query parameters that remain in the URL. When the resulting string is echoed into an HTML attribute without wrapping it in esc_url or esc_url_raw, injected content executes in the browser.
Root Cause
The root cause is missing output encoding at the sink. WordPress developer documentation explicitly warns that remove_query_arg returns untrusted input derived from $_SERVER['REQUEST_URI']. The SliceWP code paths at line 544 of the commissions table, line 490 of the payments table, and line 396 of the visits table pass this value directly to HTML output without escaping. This is a classic reflected XSS pattern caused by trusting server-provided URL data.
Attack Vector
An attacker crafts a URL to an affected SliceWP admin page with a payload embedded in the query string. The attacker then persuades an authenticated administrator to click the link through phishing or social engineering. When the admin page renders, the malicious script executes in the administrator's session. Because the attack requires user interaction and operates across a security scope boundary, impact extends to actions the targeted administrator can perform.
No exploitation code example is published. See the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2024-8714
Indicators of Compromise
- Web server access logs showing requests to SliceWP admin endpoints containing URL-encoded <script>, javascript:, onerror=, or onload= fragments in query parameters.
- Outbound requests from administrator browsers to attacker-controlled domains shortly after visiting SliceWP admin pages.
- Unexpected creation of new WordPress administrator accounts or plugin modifications following admin sessions.
Detection Strategies
- Inspect HTTP referer and request logs for admin users browsing admin.php?page=slicewp* URLs with suspicious query strings.
- Deploy a Web Application Firewall (WAF) rule set that blocks reflected XSS payloads in query parameters addressed to WordPress admin endpoints.
- Hunt for anomalous wp_users or wp_options modifications correlated to admin page views on affected plugin versions.
Monitoring Recommendations
- Monitor WordPress plugin inventory and alert when slicewp is detected at version 1.1.20 or earlier.
- Enable file integrity monitoring on wp-content/plugins/slicewp/ to detect tampering after suspected exploitation.
- Correlate administrator browser telemetry with WordPress audit logs to identify session hijack indicators.
How to Mitigate CVE-2024-8714
Immediate Actions Required
- Upgrade the SliceWP Affiliates plugin to a version later than 1.1.20 that includes the fix from WordPress Changeset #3151062.
- Audit administrator accounts and rotate credentials and session tokens for any user who accessed SliceWP admin pages before patching.
- Review WordPress audit logs for unauthorized configuration changes, new users, or plugin installations.
Patch Information
The vendor remediation is published in WordPress Changeset #3151062. The fix wraps the output of remove_query_arg with the appropriate escaping function so that attacker-controlled query content is neutralized before rendering. Site operators should update through the WordPress plugin management interface or by replacing the plugin directory with the patched release.
Workarounds
- Deploy a WAF rule that strips or blocks reflected XSS payloads targeting /wp-admin/admin.php requests with the page parameter referencing SliceWP.
- Restrict administrator access to the WordPress backend by source IP where feasible to reduce exposure to phishing-delivered links.
- Deactivate the SliceWP plugin until the patched version is deployed if an immediate upgrade is not possible.
# Configuration example: upgrade SliceWP via WP-CLI
wp plugin update slicewp --path=/var/www/html
wp plugin get slicewp --field=version --path=/var/www/html
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

