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-9374 Overview
CVE-2024-9374 is a Reflected Cross-Site Scripting (XSS) vulnerability affecting the Terms descriptions plugin for WordPress. The flaw exists in all versions up to and including 3.4.6. The plugin uses the add_query_arg function without properly escaping the URL output, allowing attackers to inject arbitrary JavaScript into rendered pages. Exploitation requires unauthenticated attackers to trick a user into clicking a crafted link. Successful attacks execute script in the victim's browser session within the WordPress site context. The issue is categorized under [CWE-79] Improper Neutralization of Input During Web Page Generation.
Critical Impact
Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser by delivering a crafted link, enabling session theft, administrative action abuse, and content manipulation.
Affected Products
- WordPress Terms descriptions plugin versions ≤ 3.4.6
- WordPress sites with the plugin installed and activated
- Any user interacting with crafted links targeting vulnerable installations
Discovery Timeline
- 2024-10-24 - CVE-2024-9374 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-9374
Vulnerability Analysis
The Terms descriptions plugin builds administrative URLs using WordPress's add_query_arg function. This function reflects the current request URI into the generated link when no explicit URL is passed. The plugin then outputs the resulting URL into page markup without escaping it through esc_url or an equivalent sanitizer. An attacker who controls the request URI can inject HTML attributes or script payloads that render into the DOM. The flaw sits in includes/td_admin_terms.php around line 520 as documented in the plugin source trac listing.
Because the sink reflects attacker-controlled data back into HTML context, the vulnerability is classified as Reflected XSS. The scope-changed CVSS vector indicates the executed script runs with privileges that extend beyond the vulnerable component, impacting the broader WordPress session.
Root Cause
The root cause is missing output encoding on a URL constructed from $_SERVER['REQUEST_URI'] through add_query_arg. WordPress documentation explicitly warns that add_query_arg output must be escaped before use in HTML or attribute contexts. The plugin omits this step, allowing injected characters such as quotes and angle brackets to break out of the attribute and introduce new tags or event handlers.
Attack Vector
An attacker crafts a URL pointing to a vulnerable administrative page and appends payload data to the query string or path. The attacker delivers the URL through phishing, forum posts, or malicious ads. When an authenticated user with access to the targeted admin page clicks the link, the plugin reflects the payload into the rendered HTML. The browser executes the injected JavaScript under the WordPress origin. The attacker can then exfiltrate session cookies, submit authenticated requests, or alter site content. See the Wordfence Vulnerability Report and WordPress Plugin Code Review for the specific sink location.
Detection Methods for CVE-2024-9374
Indicators of Compromise
- Inbound HTTP requests to WordPress admin paths containing script tags, javascript: URIs, or encoded angle brackets in the query string or URI
- Access log entries targeting plugin administrative screens with unusual REQUEST_URI values containing quotes or event handler keywords such as onerror or onmouseover
- Unexpected outbound requests from administrator browsers to attacker-controlled domains after accessing WordPress admin pages
Detection Strategies
- Inspect web server access logs for crafted URIs targeting the Terms descriptions plugin pages with payload patterns typical of reflected XSS
- Deploy a web application firewall rule that flags reflected input containing HTML metacharacters on WordPress admin endpoints
- Monitor browser Content Security Policy violation reports for inline script execution originating from WordPress admin pages
Monitoring Recommendations
- Enable WordPress audit logging for administrator sessions and correlate anomalous actions with recent admin page visits
- Alert on administrator account activity initiated from unusual IP addresses or user agents shortly after email or chat link clicks
- Track plugin inventory and version data across WordPress estates to identify installations still running Terms descriptions ≤ 3.4.6
How to Mitigate CVE-2024-9374
Immediate Actions Required
- Identify all WordPress sites with the Terms descriptions plugin installed and record installed versions
- Deactivate the Terms descriptions plugin on any site running version 3.4.6 or earlier until a patched release is confirmed
- Instruct administrators to avoid clicking unsolicited links that reference WordPress admin URLs
- Rotate administrator session cookies and reset passwords for accounts that may have interacted with crafted links
Patch Information
At the time of the NVD entry, all versions up to and including 3.4.6 are listed as vulnerable. Review the Wordfence Vulnerability Report and the plugin's WordPress.org listing for the latest fixed version and apply the update across all affected sites.
Workarounds
- Remove or deactivate the plugin until a fixed version is deployed
- Restrict access to WordPress admin paths through IP allowlisting at the web server or reverse proxy
- Deploy a WAF signature that blocks reflected XSS payloads targeting WordPress admin query strings
- Enforce a strict Content Security Policy that disallows inline script execution on admin pages
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

