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-12468 Overview
CVE-2024-12468 is a Reflected Cross-Site Scripting (XSS) vulnerability in the WP Datepicker plugin for WordPress, developed by androidbubbles. The flaw exists in all versions up to and including 2.1.4 and stems from insufficient input sanitization and output escaping on the wpdp_get_selected_datepicker parameter. Unauthenticated attackers can inject arbitrary JavaScript that executes in a victim's browser when the victim clicks a crafted link. The vulnerability is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
An unauthenticated attacker can execute arbitrary JavaScript in an administrator's browser session, enabling account takeover, settings modification, or pivoting to further WordPress compromise.
Affected Products
- androidbubbles WP Datepicker plugin for WordPress — all versions up to and including 2.1.4
- WordPress sites with the vulnerable plugin installed and active
- Administrative pages rendered via inc/wpdp_settings.php in the plugin
Discovery Timeline
- 2024-12-24 - CVE-2024-12468 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12468
Vulnerability Analysis
The WP Datepicker plugin exposes administrative settings pages that read request parameters and reflect them back into HTML output without proper encoding. The wpdp_get_selected_datepicker parameter is written into the response page without sufficient sanitization or escaping. An attacker who crafts a URL containing JavaScript in that parameter can cause the script to execute when a logged-in WordPress user visits the link.
Because the vulnerability is reflected and unauthenticated to trigger, the attack typically targets authenticated administrators via phishing or social engineering. Once JavaScript runs in the admin session, the attacker inherits that user's privileges within the WordPress dashboard.
Root Cause
The plugin's settings code in inc/wpdp_settings.php concatenates user-controlled request values directly into HTML attributes and element contents. The vulnerable sinks are documented across multiple lines of the file in versions up to 2.1.3, including lines 267, 271, 359, 361, 377, 401, 402, 408, 409, 415, 416, 423, 552, and 553. The code neither applies esc_attr() / esc_html() to output nor validates that the parameter conforms to an expected datepicker identifier.
Attack Vector
Exploitation requires user interaction over the network. An attacker builds a URL to a vulnerable WordPress admin page with a malicious wpdp_get_selected_datepicker value containing an HTML or JavaScript payload. The attacker then delivers the link to a WordPress administrator through email, chat, or a malicious website. When the administrator visits the link while authenticated, the browser renders the attacker-supplied script in the context of the WordPress origin, giving the payload access to session cookies, nonces, and dashboard functionality.
No verified public exploit code is available for CVE-2024-12468. Technical details on the vulnerable sinks are documented in the Wordfence Vulnerability Report and the plugin source at wpdp_settings.php Line 267.
Detection Methods for CVE-2024-12468
Indicators of Compromise
- HTTP requests to WordPress admin pages containing the wpdp_get_selected_datepicker parameter with HTML or JavaScript characters such as <, >, script, onerror, or javascript:.
- URL-encoded payload patterns such as %3Cscript%3E, %22%3E, or onload%3D present in query strings referencing the WP Datepicker plugin.
- Unexpected administrative actions, user creations, or plugin installations shortly after an administrator clicks an external link.
Detection Strategies
- Inspect WordPress and reverse-proxy access logs for requests whose query string contains wpdp_get_selected_datepicker= combined with script-like metacharacters.
- Deploy a web application firewall rule to flag or block reflected XSS patterns targeting WP Datepicker administrative endpoints.
- Correlate referer headers from external domains to WordPress wp-admin requests to identify likely phishing-driven exploitation.
Monitoring Recommendations
- Enable WordPress audit logging for administrator sessions and alert on configuration changes made immediately after an inbound click-through.
- Monitor browser-side CSP violation reports for inline script execution on WordPress admin pages.
- Track installed WP Datepicker plugin versions across managed WordPress estates and alert when any instance remains at or below version 2.1.4.
How to Mitigate CVE-2024-12468
Immediate Actions Required
- Update the WP Datepicker plugin to a version newer than 2.1.4 that incorporates the vendor fixes.
- If no fixed version is yet available in your environment, deactivate and remove the plugin until it can be patched.
- Instruct WordPress administrators to avoid clicking unsolicited links to their own site and to use separate browsers or profiles for administrative work.
Patch Information
The vendor addressed the sanitization and escaping issues through two WordPress.org commits: Changeset 3210616 and Changeset 3212312. Administrators should apply the latest release from the WordPress plugin repository and confirm the installed version is above 2.1.4.
Workarounds
- Add a web application firewall rule that strips or blocks HTML metacharacters in the wpdp_get_selected_datepicker query parameter.
- Restrict wp-admin access by source IP or VPN while a patch is being validated.
- Enforce a strict Content Security Policy on WordPress admin pages to limit inline script execution and reduce the impact of reflected XSS.
# Example ModSecurity rule to block script payloads in the vulnerable parameter
SecRule ARGS:wpdp_get_selected_datepicker "@rx (?i)(<script|javascript:|onerror=|onload=)" \
"id:1012468,phase:2,deny,status:403,log,msg:'CVE-2024-12468 WP Datepicker reflected XSS attempt'"
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

