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-12072 Overview
CVE-2024-12072 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Analytics Cat – Google Analytics Made Easy plugin for WordPress. The flaw affects all versions up to and including 1.1.2. The plugin uses add_query_arg without properly escaping the resulting URL, allowing unauthenticated attackers to inject arbitrary web scripts. Successful exploitation requires user interaction, such as clicking a specially crafted link. The vulnerability is tracked under [CWE-79] (Improper Neutralization of Input During Web Page Generation). CVE-2025-24615 is likely a duplicate of this issue.
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser session, enabling session theft, credential harvesting, or actions performed on behalf of an authenticated administrator.
Affected Products
- Analytics Cat – Google Analytics Made Easy plugin for WordPress
- All versions up to and including 1.1.2
- WordPress sites with the vulnerable plugin installed and active
Discovery Timeline
- 2024-12-12 - CVE-2024-12072 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12072
Vulnerability Analysis
The vulnerability stems from insecure use of the WordPress add_query_arg() function within the Analytics Cat plugin. The function returns a URL constructed from user-controllable query parameters, which the plugin then echoes into the rendered page without escaping. When a victim clicks a crafted link, attacker-supplied script content is reflected into the response and executes in the browser context of the target site.
Because the flaw requires no authentication, any visitor to the site can be targeted. Exploitation depends on social engineering to deliver the malicious URL. Successful attacks execute in the origin of the WordPress site, allowing theft of session cookies, forced administrative actions, or injection of persistent malicious content through the compromised admin session.
Root Cause
The plugin passes the return value of add_query_arg() into HTML output without calling esc_url() or an equivalent escaping function. WordPress documentation explicitly warns that add_query_arg() is not safe for direct output because it inherits data from $_SERVER['REQUEST_URI'], which attackers can control.
Attack Vector
Exploitation requires an attacker to craft a URL pointing at a vulnerable Analytics Cat page with injected script payloads in the query string. The victim must click the link. Upon rendering, the plugin reflects the payload into the DOM, and the browser executes it under the site's origin. The vulnerability manifests over the network with low complexity and requires user interaction. See the Wordfence Vulnerability Report for technical details.
Detection Methods for CVE-2024-12072
Indicators of Compromise
- Web server access logs containing query strings with encoded <script>, javascript:, or onerror= payloads directed at Analytics Cat plugin endpoints
- Referer headers pointing to attacker-controlled domains preceding requests to wp-admin pages with the plugin loaded
- Unexpected outbound requests from administrator browsers to unfamiliar domains after visiting plugin pages
- Creation of new administrator accounts or plugin installations shortly after a crafted URL is clicked
Detection Strategies
- Inspect HTTP requests to WordPress pages where the Analytics Cat plugin renders, looking for reflected script content in query parameters
- Deploy Web Application Firewall (WAF) rules that flag XSS patterns in REQUEST_URI values
- Monitor for the plugin version through WordPress asset inventory scanning to identify sites running 1.1.2 or earlier
Monitoring Recommendations
- Enable WordPress audit logging to capture administrator actions that follow suspicious page loads
- Alert on modifications to plugin files, user roles, or wp_options records outside change windows
- Correlate email gateway telemetry with web traffic to identify phishing campaigns delivering crafted URLs
How to Mitigate CVE-2024-12072
Immediate Actions Required
- Update the Analytics Cat plugin to a version later than 1.1.2 once available from the vendor
- Deactivate and remove the plugin if a patched release is not yet published and the functionality is not essential
- Force password resets and session invalidation for administrator accounts that may have interacted with crafted links
- Review recent administrative actions, plugin installations, and user role changes for signs of abuse
Patch Information
A vendor code change is referenced in the WordPress Plugin Changeset. Site administrators should verify the installed plugin version through the WordPress dashboard and apply the latest release from the plugin repository.
Workarounds
- Deploy a WAF rule that blocks requests containing HTML tags or JavaScript scheme markers in query parameters targeting plugin URLs
- Restrict administrator access to the WordPress dashboard through IP allowlisting or VPN-only access to reduce phishing exposure
- Implement a strict Content Security Policy (CSP) that disallows inline script execution on WordPress pages
# Example WAF rule (ModSecurity syntax) to block reflected XSS payloads
SecRule REQUEST_URI "@rx (?i)(<script|javascript:|onerror=|onload=)" \
"id:1012072,phase:2,deny,status:403,msg:'Potential CVE-2024-12072 XSS payload detected'"
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

