CVE-2024-8541 MEDIUM

CVE-2024-8541: Discount Rules for WooCommerce – Create Smart WooCommerce Coupons & Discounts, Bulk Discount, BOGO Coupons <= 2.6.5 - Reflected Cross-Site Scripting

Vendor Flycart
Product Discount Rules for WooCommerce
Weakness CWE-79 · XSS
Published October 16, 2024
Last update April 8, 2026

CVSS base score

4.7/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

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

Related vulnerabilities

08Related CVE