
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-1866 is a Stored Cross-Site Scripting (XSS) vulnerability in the Name Directory plugin for WordPress, affecting all versions up to and including 1.32.0. The flaw allows unauthenticated attackers to inject arbitrary web scripts via the name_directory_name and name_directory_description parameters in the plugin's public submission form. It was published on February 10, 2026, with a CVSS v3.1 base score of 7.2 (High) (Red Hat CVE, Wordfence).
The root cause is improper input sanitization classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The plugin's sanitization routine calls html_entity_decode() before wp_kses() to strip disallowed HTML, and then calls html_entity_decode() again on output — a double-decoding flaw that allows double HTML-entity-encoded payloads to bypass the sanitization filter entirely. An unauthenticated attacker submits a malicious entry via the public name/description submission form; the injected script executes in the browser of any user who views the approved or auto-published page (Red Hat CVE, Infinitsec).
Successful exploitation results in persistent script execution in the context of any user — including administrators — who visits an affected page, enabling session hijacking, credential theft, defacement, or further malicious redirects. Because the scope is changed (S:C in CVSS), the injected script can affect resources beyond the plugin itself, such as the broader WordPress site. Sites with auto-publish enabled face immediate risk without any administrator interaction, while others require an administrator to approve the malicious submission (Red Hat CVE, Wordfence).
No public exploit code or active in-the-wild exploitation has been reported as of the available data. The EPSS score is approximately 0.123%, indicating a low probability of near-term exploitation. The vulnerability is detectable by Qualys (detection ID 530938) and has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog. Sites with auto-publish enabled are at elevated risk as no administrator interaction is required (Red Hat CVE, Qualys).
<script>alert(1)</script>) that will survive the first html_entity_decode() + wp_kses() pass and decode to executable JavaScript on the second html_entity_decode() call at output.name_directory_name or name_directory_description parameters — no authentication is required.<script>) in name_directory_name or name_directory_description parameters.wp_posts or plugin-specific tables) containing HTML-entity-encoded script tags or JavaScript event handlers.Update the Name Directory plugin to version 1.32.1 or later, which corrects the double HTML-entity decoding flaw in the sanitization routine. As an interim workaround, disable the public submission form or disable the auto-publish feature to require administrator review of all submissions, reducing the attack surface. Site administrators should also audit existing Name Directory entries for suspicious or encoded content and remove any malicious submissions (Wordfence, Red Hat CVE).
Wordfence included this vulnerability in their weekly WordPress vulnerability report for February 9–15, 2026, highlighting the unauthenticated nature of the attack and the risk posed by auto-publish configurations (Wordfence). RedPacket Security also flagged the CVE via social media shortly after disclosure (RedPacket Security). Overall community reaction has been moderate, consistent with a medium-severity WordPress plugin XSS with a straightforward patch available.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."