Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-8364: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in dondon-benjamincouk WP Custom Fields Search

0
Medium
VulnerabilityCVE-2024-8364cvecve-2024-8364cwe-79
Published: Thu Sep 19 2024 (09/19/2024, 03:59:15 UTC)
Source: CVE Database V5
Vendor/Project: dondon-benjamincouk
Product: WP Custom Fields Search

Description

CVE-2024-8364 is a stored Cross-Site Scripting (XSS) vulnerability in the WP Custom Fields Search WordPress plugin, affecting all versions up to 1. 2. 35. The flaw arises from insufficient input sanitization and output escaping in the wpcfs-preset shortcode, allowing authenticated users with contributor-level access or higher to inject malicious scripts. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, defacement, or unauthorized actions. The vulnerability has a CVSS score of 6. 4, indicating medium severity, with no known exploits in the wild currently. Organizations using this plugin should prioritize patching or applying mitigations to prevent exploitation. The threat primarily affects WordPress sites worldwide that utilize this plugin, especially those with multiple contributors. Mitigation involves restricting contributor privileges, sanitizing inputs, and monitoring for suspicious activity until an official patch is released.

AI-Powered Analysis

AILast updated: 02/26/2026, 03:58:05 UTC

Technical Analysis

CVE-2024-8364 is a stored Cross-Site Scripting (XSS) vulnerability identified in the WP Custom Fields Search plugin for WordPress, developed by dondon-benjamincouk. This vulnerability exists in all versions up to and including 1.2.35. The root cause is improper neutralization of input during web page generation, specifically insufficient sanitization and output escaping of user-supplied attributes in the plugin's wpcfs-preset shortcode. Authenticated attackers with contributor-level access or higher can exploit this flaw by injecting arbitrary JavaScript code into pages via the shortcode parameters. Because the injected scripts are stored and rendered whenever the affected page is accessed, any user visiting the page will execute the malicious payload. This can lead to a range of attacks including session hijacking, privilege escalation, defacement, or distribution of malware. The vulnerability has a CVSS v3.1 score of 6.4, reflecting medium severity, with an attack vector of network, low attack complexity, requiring privileges (contributor or above), no user interaction, and a scope change due to affecting other users. No known public exploits have been reported yet. The vulnerability highlights the risk of insufficient input validation in WordPress plugins, especially those that allow user-generated content or shortcode parameters. Since WordPress powers a significant portion of the web, and this plugin is used to enhance search capabilities via custom fields, the impact can be widespread if exploited. The vulnerability is classified under CWE-79, which covers improper neutralization of input leading to XSS. The vendor has not yet published a patch or mitigation guidance, so users must take interim protective measures.

Potential Impact

The impact of CVE-2024-8364 is primarily on the confidentiality and integrity of affected WordPress sites. Successful exploitation allows an attacker with contributor-level access to inject persistent malicious scripts that execute in the context of any user viewing the compromised page. This can lead to theft of authentication cookies, enabling session hijacking and unauthorized access. Attackers could also perform actions on behalf of other users, deface websites, or deliver malware payloads. Although availability is not directly impacted, the reputational damage and potential data breaches can be significant. Organizations relying on the WP Custom Fields Search plugin, especially those with multiple contributors or user-generated content, face increased risk. The vulnerability could be leveraged in targeted attacks against high-value WordPress sites, including e-commerce, media, or corporate portals. Given the medium CVSS score and the requirement for contributor-level privileges, the threat is moderate but should not be underestimated, particularly in environments with many contributors or less stringent access controls.

Mitigation Recommendations

1. Immediately restrict contributor-level and higher privileges to trusted users only, minimizing the risk of malicious script injection. 2. Monitor and audit all user-generated content and shortcode usage for suspicious or unexpected scripts or HTML. 3. Until an official patch is released, consider disabling or removing the WP Custom Fields Search plugin if it is not critical to operations. 4. Implement Web Application Firewall (WAF) rules to detect and block attempts to inject or execute malicious scripts via the wpcfs-preset shortcode parameters. 5. Educate content contributors about safe content practices and the risks of injecting untrusted code. 6. Regularly back up WordPress sites to enable quick restoration in case of compromise. 7. Follow the vendor’s updates closely and apply patches immediately once available. 8. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on affected sites. 9. Use security plugins that can detect and alert on XSS attempts or unusual shortcode behavior. 10. Review and harden WordPress user roles and permissions to enforce the principle of least privilege.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-08-30T22:43:49.479Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6c28b7ef31ef0b560918

Added to database: 2/25/2026, 9:39:52 PM

Last enriched: 2/26/2026, 3:58:05 AM

Last updated: 2/26/2026, 9:09:33 AM

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats