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-2024-8871 Overview
CVE-2024-8871 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Easy Pricing Tables WordPress plugin. The flaw affects all versions up to and including 3.2.5. It stems from the use of add_query_arg without appropriate URL escaping, which allows unauthenticated attackers to inject arbitrary JavaScript into rendered pages. Exploitation requires user interaction, typically tricking an authenticated user into clicking a crafted link. Successful exploitation runs attacker-controlled scripts in the victim's browser session on the vulnerable site.
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser, enabling session theft, administrative action abuse, and content tampering on affected WordPress sites.
Affected Products
- Easy Pricing Tables WordPress Plugin versions ≤ 3.2.5
- WordPress sites running the vulnerable plugin builds
- Any plugin component relying on add_query_arg output in ept-block.php and notices.php
Discovery Timeline
- 2024-10-30 - CVE-2024-8871 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-8871
Vulnerability Analysis
The vulnerability is a Reflected Cross-Site Scripting flaw [CWE-79] in the Easy Pricing Tables plugin. The plugin calls WordPress's add_query_arg function to construct URLs without escaping the current request URI. Because add_query_arg reuses $_SERVER['REQUEST_URI'] by default when no explicit URL is passed, an attacker can inject script payloads into the URL. The unescaped output is then rendered back into the page HTML. When a victim clicks a crafted link, the injected payload executes in their browser under the context of the vulnerable site. The impacted code paths reside in includes/ept-block.php and includes/notices/notices.php.
Root Cause
The root cause is missing output escaping on URL values generated by add_query_arg. WordPress developer guidance requires wrapping such output with esc_url to neutralize script and markup characters. The plugin omitted this sanitization before echoing the URL into attributes rendered in the admin or front-end response.
Attack Vector
The attack is network-based and unauthenticated, but requires user interaction. An attacker crafts a URL to the vulnerable WordPress endpoint containing a malicious payload in the query string or path. When a logged-in user, often an administrator, visits the link, the plugin reflects the payload into the page, and the browser executes it. Resulting actions can include stealing authentication cookies, performing privileged WordPress actions, or redirecting users to attacker infrastructure.
No verified public proof-of-concept code is available. For technical references, see the Wordfence Vulnerability Intelligence Report and the affected plugin source in ept-block.php and notices.php.
Detection Methods for CVE-2024-8871
Indicators of Compromise
- Web server access logs containing URL-encoded <script>, javascript:, or event handler payloads targeting pages that render the pricing tables plugin.
- Unusual outbound requests from admin browser sessions shortly after visiting a WordPress admin URL with suspicious query parameters.
- WordPress audit logs showing privileged actions originating from an admin session triggered by an external referrer.
Detection Strategies
- Monitor HTTP requests to the WordPress site for query strings containing XSS payload patterns such as onerror=, onload=, or encoded script tags.
- Deploy a Web Application Firewall rule set that flags reflected input echoed into response bodies for the affected plugin endpoints.
- Compare installed plugin versions across sites against the fixed release to identify assets still exposed to CVE-2024-8871.
Monitoring Recommendations
- Alert on administrator accounts initiating sessions from unusual referrers immediately followed by configuration or user-management changes.
- Review browser process telemetry on administrator endpoints for script execution events tied to WordPress admin URLs.
- Track plugin update status centrally so unpatched instances of Easy Pricing Tables are detected quickly.
How to Mitigate CVE-2024-8871
Immediate Actions Required
- Update the Easy Pricing Tables plugin to a release later than 3.2.5 that addresses CVE-2024-8871.
- Audit WordPress administrator accounts for suspicious activity since October 2024, including unexpected user creation or plugin installation.
- Enforce administrator access through hardened browsers and warn staff against clicking unverified links to the WordPress site.
Patch Information
The vendor has published updated plugin releases to address the unescaped add_query_arg usage. Apply the latest version available through the WordPress plugin repository. Confirm the fix by reviewing the updated includes/ept-block.php and includes/notices/notices.php files for the addition of esc_url wrapping around URL output.
Workarounds
- Deactivate and remove the Easy Pricing Tables plugin until the patched version is deployed.
- Deploy a Web Application Firewall rule that blocks requests containing reflected script payloads to pages rendering the plugin.
- Restrict WordPress admin access to known IP ranges to reduce the pool of users who can be targeted by a crafted link.
# Example WordPress CLI commands to inventory and update the plugin
wp plugin get easy-pricing-tables --field=version
wp plugin update easy-pricing-tables
wp plugin deactivate easy-pricing-tables # if patched version is unavailable
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

