What the vulnerability does
01Description
The Discount Rules for WooCommerce – Create Smart WooCommerce Coupons & Discounts, Bulk Discount, BOGO Coupons plugin for WordPress is vulnerable to Reflected Cross-Site Scripting due to the use of add_query_arg without appropriate escaping on the URL in all versions up to, and including, 2.6.5. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a site administrator into performing an action such as clicking on a link. Please note that this is only exploitable when the 'Leave a Review' notice is present, which occurs after 100 orders are made and disappears after a user dismisses the notice.
Explanation of Vulnerability in Simple Terms
02Summary
Discount Rules for WooCommerce versions 2.6.5 and earlier contain a cross-site scripting (XSS) vulnerability. An attacker can inject malicious scripts that execute in a victim's browser when they interact with affected pages. The vulnerability requires user interaction and network access but does not require authentication. The injected script can steal session data or perform actions on behalf of the victim.
What an attacker can do
03Attacker Capabilities
Inject malicious scripts that run in a victim's browser and steal session data or perform actions on their behalf.
Potential impact on your site
04Site Impact
Customers or admins visiting affected pages could have their sessions hijacked or be tricked into performing unintended actions.
Conditions required to exploit
05Prerequisites
Victim must visit a page containing the attacker's malicious input; no authentication required.
Key dates
06Disclosure timeline
October 16, 2024
CVE published
April 8, 2026
Record updated