Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-12077 Overview
CVE-2024-12077 is a Reflected Cross-Site Scripting (XSS) vulnerability affecting the Booking Calendar and Booking Calendar Pro plugins for WordPress. The flaw resides in the calendar_id parameter and stems from insufficient input sanitization and output escaping [CWE-79]. Unauthenticated attackers can inject arbitrary JavaScript that executes in a victim's browser when the victim clicks a crafted link. The vulnerability affects all versions of Booking Calendar up to and including 3.2.19, and Booking Calendar Pro up to and including 11.2.19.
Critical Impact
Successful exploitation enables session hijacking, administrative action abuse, and arbitrary script execution in the context of a logged-in WordPress user who follows an attacker-supplied link.
Affected Products
- WordPress Booking Calendar plugin, versions up to and including 3.2.19
- WordPress Booking Calendar Pro plugin, versions up to and including 11.2.19
- WordPress sites with vulnerable plugin versions installed and active
Discovery Timeline
- 2025-01-07 - CVE-2024-12077 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12077
Vulnerability Analysis
The flaw is a Reflected XSS condition in the Booking Calendar reservation administration view. The calendar_id request parameter is echoed back into generated HTML output without adequate sanitization or escaping. An attacker crafts a URL containing JavaScript payloads in the calendar_id parameter and delivers it through phishing, social engineering, or embedded links. When a WordPress user, typically an administrator viewing the reservations page, visits the crafted URL, the injected script executes in the browser under the site's origin.
Because execution occurs in the authenticated user's session, attackers can perform actions on behalf of the victim. These include creating new administrator accounts, injecting persistent backdoors into plugin or theme code, exfiltrating session cookies, and pivoting to further compromise of the WordPress environment. The scope-change characteristic of the vulnerability means the executed script can affect resources beyond the initial vulnerable component.
Root Cause
The root cause is insufficient input validation and missing output escaping on the calendar_id parameter processed by admin/views/Reservations.php in the plugin source. User-controlled data flows directly into the HTML response context without being passed through WordPress sanitization functions such as esc_attr(), esc_html(), or absint() for integer-only identifiers. The referenced code paths at lines 528 and 532 of the vulnerable file demonstrate the unsanitized reflection pattern.
Attack Vector
Exploitation requires no authentication but does require user interaction. An attacker constructs a URL targeting the vulnerable Reservations admin page with a malicious payload in the calendar_id query string. The attacker then convinces a privileged WordPress user to click the link, often by impersonating a legitimate notification. On click, the browser renders the response and executes the attacker's JavaScript within the WordPress admin origin.
For technical details on the vulnerable code, see the WordPress Booking Calendar source and the Wordfence vulnerability report.
// No verified exploit code is published for CVE-2024-12077.
// The vulnerability pattern involves reflection of the
// calendar_id query parameter into HTML output without
// escaping. Refer to the Wordfence advisory for details.
Detection Methods for CVE-2024-12077
Indicators of Compromise
- HTTP requests to WordPress admin paths containing calendar_id parameters with URL-encoded <script>, onerror, onload, or javascript: tokens
- Unexpected creation of WordPress administrator accounts shortly after a user accessed a reservations admin page
- Outbound requests from administrator browsers to attacker-controlled domains following clicks on external links
- Modifications to plugin or theme files not correlated with legitimate update activity
Detection Strategies
- Inspect web server access logs for GET requests to Booking Calendar admin endpoints containing suspicious characters in the calendar_id parameter
- Deploy a Web Application Firewall (WAF) rule that blocks or flags HTML and JavaScript metacharacters in calendar_id values
- Monitor browser-side errors and content security policy violations referencing the reservations admin page
- Review WordPress audit logs for privilege changes, new user creation, and plugin file modifications
Monitoring Recommendations
- Enable verbose logging on WordPress with a security auditing plugin to capture admin actions and parameter values
- Forward WordPress and web server logs to a centralized analytics platform for correlation and alerting
- Alert on anomalous administrator session activity, including unusual geolocation or user-agent changes
- Track plugin inventory and version drift across all managed WordPress sites to identify unpatched installations
How to Mitigate CVE-2024-12077
Immediate Actions Required
- Update Booking Calendar to a version later than 3.2.19 and Booking Calendar Pro to a version later than 11.2.19
- If immediate patching is not possible, deactivate the Booking Calendar and Booking Calendar Pro plugins until updates are applied
- Rotate credentials for any WordPress administrator who may have clicked suspicious links referencing the reservations page
- Audit WordPress user accounts for unauthorized administrator additions
Patch Information
The vendor remediated the issue in WordPress Changeset #3209851, which added proper sanitization and escaping for the calendar_id parameter. Site administrators should install the latest versions of both plugins through the WordPress plugin directory. Refer to the Wordfence Vulnerability Report for additional advisory information.
Workarounds
- Apply a WAF rule that strips or rejects HTML and script content in the calendar_id query parameter
- Enforce a strict Content Security Policy (CSP) on WordPress admin pages to limit inline script execution
- Train administrators to avoid clicking unsolicited links that reference WordPress admin URLs
- Restrict access to the WordPress admin interface by IP allowlist where operationally feasible
# Example ModSecurity rule to block script tokens in calendar_id
SecRule ARGS:calendar_id "@rx (?i)(<script|onerror=|onload=|javascript:)" \
"id:1012077,phase:2,deny,status:403,\
msg:'Potential CVE-2024-12077 XSS attempt in calendar_id'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

