Atomic Edge analysis of CVE-2026-59556 (metadata-based):
Atomic Edge research identifies this as an unauthenticated stored Cross-Site Scripting (XSS) vulnerability in the Dynamic Pricing With Discount Rules for WooCommerce plugin, versions up to and including 4.5.11. The CVSS score of 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N) reflects the lack of authentication requirement, a low complexity attack, and a significant scope change due to the stored XSS payload affecting other users. The affected component is the plugin’s discount rule configuration, specifically its handling of user-supplied input that gets rendered in the WordPress admin interface.
Root Cause:
The vulnerability stems from insufficient input sanitization and output escaping in the plugin’s discount rule handling. According to the CWE-79 classification and the vendor description, the plugin fails to neutralize or properly escape user-supplied data before rendering it in HTML pages. Atomic Edge analysis infers that the vulnerable code likely takes data from form fields (possibly rule names, descriptions, or other free-text fields) and stores it without running sanitize_* or esc_* functions. The stored data is later echoed in admin pages without proper escaping, allowing script execution. This conclusion is inferred from the CWE and vulnerability description; no source code diff is available to confirm the exact sink.
Exploitation:
An unauthenticated attacker can inject arbitrary JavaScript by submitting a crafted request to the plugin’s AJAX handler or form endpoint. Since the plugin uses regular WordPress AJAX infrastructure, the likely endpoint is `/wp-admin/admin-ajax.php` with an action parameter corresponding to the plugin’s rule-saving functionality. Atomic Edge research assumes an action such as `aco_woo_dynamic_pricing_save_rule`, though the exact hook name may differ. The attacker submits a POST request with the vulnerable parameter (for example, a rule description field) containing a payload like `alert(document.cookie)` or an event-handler variant. The absence of a nonce check or capability requirement in the vulnerable code path allows unauthenticated submission. The payload is stored in the database and later triggered when an administrator views the discount rules page, executing in the context of the admin session.
Remediation:
The fix requires implementing proper input sanitization and output escaping on all user-controlled data that the plugin stores and renders. Atomic Edge research advises the developer to apply `sanitize_text_field()`, `sanitize_textarea_field()`, or a similar WordPress sanitization function when saving input, and `esc_html()` or `wp_kses()` when outputting data in HTML contexts. Additionally, the plugin must enforce capability checks (such as `current_user_can(‘manage_options’)`) and validate nonces on all AJAX handlers and form submission endpoints to prevent unauthenticated access. The patched version 5.0.0 should include these hardening measures.
Impact:
Successful exploitation allows an unauthenticated attacker to inject arbitrary JavaScript into the WordPress admin context. This can lead to session hijacking, forced administrator actions, and the injection of new malicious admin users or backdoors. Because the payload executes in the context of any user who views the affected page, administrators are the primary targets. The scope change in the CVSS vector indicates the attacked component (the rule storage) is different from the impacted component (the admin interface), amplifying the risk. The attack requires no user interaction beyond an administrator navigating to the vulnerable page.







