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-12260 Overview
CVE-2024-12260 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Ultimate Endpoints With Rest Api plugin for WordPress. The flaw affects all versions up to and including 2.2.2. It stems from insufficient input sanitization and output escaping on the page parameter processed by the plugin's admin API log display component. Unauthenticated attackers can craft malicious URLs that inject arbitrary JavaScript into the rendered admin page. Successful exploitation requires tricking an authenticated user into clicking the attacker-controlled link. The vulnerability is classified under CWE-79.
Critical Impact
Successful exploitation allows attackers to execute arbitrary JavaScript in the browser context of a WordPress administrator, enabling session theft, account takeover, or injection of persistent backdoors through administrative actions.
Affected Products
- Ultimate Endpoints With Rest Api plugin for WordPress
- All versions up to and including 2.2.2
- WordPress sites with the custom-wp-rest-api plugin installed and activated
Discovery Timeline
- 2024-12-12 - CVE-2024-12260 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12260
Vulnerability Analysis
The vulnerability resides in the plugin's admin API log display functionality. The affected code path at admin/api_log_display.php line 146 reflects the value of the page request parameter back into the rendered HTML without applying proper sanitization or output escaping. Because the input is echoed directly into the page, an attacker who controls the page parameter controls a portion of the DOM delivered to the browser. The reflected pattern requires user interaction, typically a logged-in administrator following a crafted link. See the WordPress plugin source reference for the exact location.
Root Cause
The root cause is a failure to apply WordPress-provided escaping functions such as esc_attr(), esc_html(), or sanitize_text_field() to the page query parameter before rendering it in the admin interface. The plugin trusts attacker-controllable input and emits it verbatim into HTML output. This is a textbook instance of improper neutralization of input during web page generation ([CWE-79]).
Attack Vector
An unauthenticated attacker crafts a URL targeting the vulnerable admin page with a malicious page parameter value containing JavaScript payloads. The attacker delivers the link through phishing, forum posts, or social engineering. When a logged-in WordPress administrator clicks the link, the injected script executes under the site's origin. The script can issue authenticated requests, exfiltrate session cookies not protected by HttpOnly, create rogue administrator accounts, or modify plugin and theme files via WordPress REST APIs.
No verified public proof-of-concept code is available. Refer to the Wordfence vulnerability report for additional technical context.
Detection Methods for CVE-2024-12260
Indicators of Compromise
- Web server access logs containing requests to WordPress admin pages with suspicious characters in the page query parameter, such as <script, onerror=, javascript:, or URL-encoded equivalents like %3Cscript%3E.
- Unexpected WordPress administrator account creation or role elevation following administrator browsing sessions.
- Outbound requests from administrator browsers to unfamiliar external domains immediately after loading the plugin's admin pages.
Detection Strategies
- Inspect HTTP request logs for the page parameter containing HTML tags, event handlers, or encoded script delimiters when targeting the custom-wp-rest-api plugin paths.
- Deploy a Web Application Firewall (WAF) rule to flag or block reflected XSS patterns in admin query strings.
- Review installed WordPress plugin inventory and flag any site running custom-wp-rest-api version 2.2.2 or earlier.
Monitoring Recommendations
- Enable WordPress audit logging for user creation, role changes, and plugin or theme file modifications.
- Monitor browser Content Security Policy (CSP) violation reports for inline script execution originating from WordPress admin paths.
- Alert on administrator sessions issuing anomalous REST API calls shortly after visiting plugin admin screens.
How to Mitigate CVE-2024-12260
Immediate Actions Required
- Identify all WordPress sites running the Ultimate Endpoints With Rest Api plugin at version 2.2.2 or earlier.
- Deactivate and remove the plugin until a patched release is confirmed installed.
- Rotate administrator credentials and invalidate active sessions if administrator accounts may have visited attacker-controlled links.
Patch Information
At the time of the last NVD update, the advisory lists all versions up to and including 2.2.2 as vulnerable. Site operators should monitor the plugin repository and the Wordfence advisory for a fixed release and upgrade immediately when available.
Workarounds
- Restrict access to the WordPress admin interface by IP allowlisting at the web server or WAF layer.
- Deploy a WAF rule that blocks requests to WordPress admin endpoints when the page parameter contains HTML or script metacharacters.
- Enforce a strict Content Security Policy on the WordPress admin area to prevent execution of inline scripts.
- Require administrators to use dedicated browser profiles and avoid clicking untrusted links while authenticated.
# Example ModSecurity rule to block reflected XSS on the page parameter
SecRule ARGS:page "@rx (?i)(<script|javascript:|onerror=|onload=|%3Cscript)" \
"id:1012260,phase:2,deny,status:403,log,\
msg:'CVE-2024-12260 Reflected XSS attempt in WordPress page parameter'"
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

