CVE-2026-1866: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jeroenpeters1986 Name Directory
The Name Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via double HTML-entity encoding in all versions up to, and including, 1.32.0. This is due to the plugin's sanitization function calling `html_entity_decode()` before `wp_kses()`, and then calling `html_entity_decode()` again on output. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page via the 'name_directory_name' and 'name_directory_description' parameters in the public submission form granted they can trick the site administrator into approving their submission or auto-publish is enabled.
AI Analysis
Technical Summary
CVE-2026-1866 is a stored Cross-Site Scripting (XSS) vulnerability identified in the 'Name Directory' WordPress plugin developed by jeroenpeters1986, affecting all versions up to and including 1.32.0. The vulnerability stems from flawed input sanitization logic where the plugin's sanitization function calls html_entity_decode() before applying wp_kses(), a WordPress function designed to filter allowed HTML tags and attributes, and then calls html_entity_decode() again on output. This double decoding process allows attackers to bypass sanitization by encoding malicious scripts in a way that they are not properly neutralized. Attackers can exploit this by submitting crafted inputs via the public submission form parameters 'name_directory_name' and 'name_directory_description'. Since the plugin allows unauthenticated submissions, attackers do not need to authenticate to inject payloads. However, the malicious content only executes when an administrator approves the submission or if auto-publish is enabled, making the attack vector reliant on site configuration or administrator action. Once injected, the malicious scripts execute in the context of any user viewing the affected page, potentially leading to session hijacking, theft of sensitive information, defacement, or further exploitation such as delivering malware. The CVSS 3.1 score of 7.2 reflects a network attack vector, no privileges or user interaction required, and a scope change due to the impact extending beyond the vulnerable component. Although no known exploits are currently in the wild, the vulnerability's characteristics make it a significant risk for WordPress sites using this plugin. The lack of available patches at the time of publication increases urgency for mitigation through configuration changes and monitoring.
Potential Impact
For European organizations, this vulnerability poses a significant risk to the confidentiality and integrity of web applications using the Name Directory plugin on WordPress. Exploitation could lead to unauthorized script execution in users' browsers, enabling session hijacking, credential theft, or unauthorized actions performed on behalf of users. This can result in data breaches, loss of customer trust, and potential regulatory non-compliance under GDPR due to exposure of personal data. The attack requires no authentication, increasing the attack surface, and can affect any visitor to the compromised pages. Organizations relying on this plugin for public-facing directories or user-generated content are particularly vulnerable. The reputational damage and operational disruption from defacement or malware distribution could be substantial. Additionally, the vulnerability could be leveraged as a foothold for further attacks within the network if administrative credentials are compromised. Given the widespread use of WordPress in Europe, the potential impact is broad, especially for sectors like government, education, and SMEs that often use community plugins without extensive security vetting.
Mitigation Recommendations
Until an official patch is released, European organizations should take immediate steps to mitigate risk. First, disable or restrict the public submission form to prevent unauthenticated inputs or disable auto-publish functionality to ensure all submissions require manual approval. Implement strict review procedures for all user-generated content to detect and reject suspicious inputs. Employ Web Application Firewalls (WAFs) with custom rules to detect and block common XSS payload patterns, particularly those involving double-encoded HTML entities. Regularly audit and monitor logs for unusual submission patterns or script injections. Educate administrators about the risk and ensure they verify submissions carefully before approval. Once patches become available, prioritize updating the plugin to the fixed version. Additionally, consider deploying Content Security Policy (CSP) headers to reduce the impact of any injected scripts. Conduct periodic security assessments of WordPress plugins and maintain an inventory to quickly identify vulnerable components. Finally, ensure backups are current to enable rapid recovery if exploitation occurs.
Affected Countries
Germany, United Kingdom, France, Netherlands, Italy, Spain, Poland, Sweden
CVE-2026-1866: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jeroenpeters1986 Name Directory
Description
The Name Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting via double HTML-entity encoding in all versions up to, and including, 1.32.0. This is due to the plugin's sanitization function calling `html_entity_decode()` before `wp_kses()`, and then calling `html_entity_decode()` again on output. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page via the 'name_directory_name' and 'name_directory_description' parameters in the public submission form granted they can trick the site administrator into approving their submission or auto-publish is enabled.
AI-Powered Analysis
Technical Analysis
CVE-2026-1866 is a stored Cross-Site Scripting (XSS) vulnerability identified in the 'Name Directory' WordPress plugin developed by jeroenpeters1986, affecting all versions up to and including 1.32.0. The vulnerability stems from flawed input sanitization logic where the plugin's sanitization function calls html_entity_decode() before applying wp_kses(), a WordPress function designed to filter allowed HTML tags and attributes, and then calls html_entity_decode() again on output. This double decoding process allows attackers to bypass sanitization by encoding malicious scripts in a way that they are not properly neutralized. Attackers can exploit this by submitting crafted inputs via the public submission form parameters 'name_directory_name' and 'name_directory_description'. Since the plugin allows unauthenticated submissions, attackers do not need to authenticate to inject payloads. However, the malicious content only executes when an administrator approves the submission or if auto-publish is enabled, making the attack vector reliant on site configuration or administrator action. Once injected, the malicious scripts execute in the context of any user viewing the affected page, potentially leading to session hijacking, theft of sensitive information, defacement, or further exploitation such as delivering malware. The CVSS 3.1 score of 7.2 reflects a network attack vector, no privileges or user interaction required, and a scope change due to the impact extending beyond the vulnerable component. Although no known exploits are currently in the wild, the vulnerability's characteristics make it a significant risk for WordPress sites using this plugin. The lack of available patches at the time of publication increases urgency for mitigation through configuration changes and monitoring.
Potential Impact
For European organizations, this vulnerability poses a significant risk to the confidentiality and integrity of web applications using the Name Directory plugin on WordPress. Exploitation could lead to unauthorized script execution in users' browsers, enabling session hijacking, credential theft, or unauthorized actions performed on behalf of users. This can result in data breaches, loss of customer trust, and potential regulatory non-compliance under GDPR due to exposure of personal data. The attack requires no authentication, increasing the attack surface, and can affect any visitor to the compromised pages. Organizations relying on this plugin for public-facing directories or user-generated content are particularly vulnerable. The reputational damage and operational disruption from defacement or malware distribution could be substantial. Additionally, the vulnerability could be leveraged as a foothold for further attacks within the network if administrative credentials are compromised. Given the widespread use of WordPress in Europe, the potential impact is broad, especially for sectors like government, education, and SMEs that often use community plugins without extensive security vetting.
Mitigation Recommendations
Until an official patch is released, European organizations should take immediate steps to mitigate risk. First, disable or restrict the public submission form to prevent unauthenticated inputs or disable auto-publish functionality to ensure all submissions require manual approval. Implement strict review procedures for all user-generated content to detect and reject suspicious inputs. Employ Web Application Firewalls (WAFs) with custom rules to detect and block common XSS payload patterns, particularly those involving double-encoded HTML entities. Regularly audit and monitor logs for unusual submission patterns or script injections. Educate administrators about the risk and ensure they verify submissions carefully before approval. Once patches become available, prioritize updating the plugin to the fixed version. Additionally, consider deploying Content Security Policy (CSP) headers to reduce the impact of any injected scripts. Conduct periodic security assessments of WordPress plugins and maintain an inventory to quickly identify vulnerable components. Finally, ensure backups are current to enable rapid recovery if exploitation occurs.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-02-03T21:37:47.348Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 698afe6e4b57a58fa1f900fe
Added to database: 2/10/2026, 9:46:22 AM
Last enriched: 2/10/2026, 10:00:50 AM
Last updated: 2/21/2026, 12:20:25 AM
Views: 17
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-27203: CWE-15: External Control of System or Configuration Setting in YosefHayim ebay-mcp
HighCVE-2026-27168: CWE-122: Heap-based Buffer Overflow in HappySeaFox sail
HighCVE-2026-27134: CWE-287: Improper Authentication in strimzi strimzi-kafka-operator
HighCVE-2026-27190: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in denoland deno
HighCVE-2026-27026: CWE-770: Allocation of Resources Without Limits or Throttling in py-pdf pypdf
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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.