Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-1866

CVE-2026-1866: Name Directory WordPress Plugin XSS Flaw

CVE-2026-1866 is a stored cross-site scripting vulnerability in the Name Directory WordPress plugin caused by double HTML-entity encoding. Attackers can inject malicious scripts via public forms. Learn about affected versions and fixes.

Published: February 13, 2026

CVE-2026-1866 Overview

The Name Directory plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) via double HTML-entity encoding in all versions up to and including 1.32.0. This vulnerability exists due to a flawed sanitization implementation where the plugin calls html_entity_decode() before wp_kses(), and then calls html_entity_decode() again on output. This double-decode sequence allows unauthenticated attackers to inject arbitrary web scripts into pages that execute whenever a user accesses an injected page.

The attack vector leverages the name_directory_name and name_directory_description parameters in the public submission form. Successful exploitation requires either tricking the site administrator into approving a malicious submission or exploiting sites where auto-publish is enabled.

Critical Impact

Unauthenticated attackers can inject persistent malicious scripts that execute in the browsers of all users who view affected pages, potentially leading to credential theft, session hijacking, or malware distribution.

Affected Products

  • Name Directory WordPress Plugin versions up to and including 1.32.0
  • WordPress installations with Name Directory plugin public submission forms enabled
  • Sites with Name Directory auto-publish feature enabled

Discovery Timeline

  • 2026-02-10 - CVE CVE-2026-1866 published to NVD
  • 2026-02-10 - Last updated in NVD database

Technical Details for CVE-2026-1866

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability stems from improper input sanitization order in the Name Directory plugin's content processing flow. The plugin implements a sanitization routine that incorrectly sequences HTML entity decoding operations with the WordPress security function wp_kses().

When user input is submitted through the public form, the plugin processes it by first calling html_entity_decode() to convert HTML entities back to their character equivalents, then applies wp_kses() for filtering dangerous content. However, the plugin then calls html_entity_decode() again when outputting the content. This sequence creates a bypass opportunity where double-encoded HTML entities survive the initial sanitization pass and are decoded into executable script tags on output.

The vulnerability affects the name_directory_name and name_directory_description parameters, which are accessible through the plugin's public submission form without authentication. This allows external attackers to submit malicious payloads that persist in the WordPress database and execute in the context of any user viewing the affected directory pages.

Root Cause

The root cause lies in the improper order of sanitization operations in the plugin's helpers.php file at line 604 and the shortcode rendering functions. The sanitization function calls html_entity_decode() before applying wp_kses(), which defeats the purpose of the security filter. When html_entity_decode() is called again during output rendering in shortcode.php, any double-encoded malicious content bypasses the wp_kses() filter entirely.

For example, a payload like &lt;script&gt; would be decoded to <script> before wp_kses() sees it (which appears harmless), then decoded again to <script> on output, resulting in script execution.

Attack Vector

The attack is delivered over the network through the plugin's public submission form. Attackers can submit directory entries containing double HTML-entity encoded XSS payloads in the name or description fields. If the site has auto-publish enabled, the malicious content becomes immediately available to all visitors. Otherwise, the attacker must employ social engineering to convince an administrator to approve the submission.

Once injected, the malicious scripts execute in the browser context of any user viewing the affected directory page, including administrators. This can lead to session hijacking, credential theft, defacement, or further attacks against the WordPress installation.

Detection Methods for CVE-2026-1866

Indicators of Compromise

  • Presence of double HTML-entity encoded strings (e.g., &amp;lt;script) in Name Directory database entries
  • Unexpected JavaScript execution or browser alerts when viewing Name Directory pages
  • Suspicious entries in the Name Directory with encoded special characters in name or description fields
  • Web application firewall logs showing attempts to submit encoded script tags to WordPress forms

Detection Strategies

  • Implement WAF rules to detect double-encoded HTML entities in form submissions targeting WordPress sites
  • Monitor database tables associated with Name Directory plugin for entries containing suspicious encoded patterns
  • Deploy browser-based XSS detection tools to identify unauthorized script execution on WordPress pages
  • Review Name Directory pending submissions for entries containing HTML entity patterns

Monitoring Recommendations

  • Enable detailed logging for WordPress plugin form submissions to capture potential attack attempts
  • Configure security plugins to alert on suspicious content patterns in user-submitted data
  • Monitor outbound network connections from user browsers that may indicate XSS payload execution
  • Implement Content Security Policy (CSP) headers to detect and report unauthorized script execution

How to Mitigate CVE-2026-1866

Immediate Actions Required

  • Update the Name Directory plugin to a version newer than 1.32.0 that addresses this vulnerability
  • Disable the public submission form feature if updates are not immediately available
  • Disable auto-publish functionality for Name Directory submissions until patching is complete
  • Review and purge any suspicious existing entries in the Name Directory database

Patch Information

The fix for this vulnerability is available in the WordPress Plugin Changeset 3455023. The patch corrects the sanitization order to prevent double-decoding attacks. Site administrators should update to the latest version through the WordPress plugin repository. Additional technical details are available in the Wordfence Vulnerability Report.

Workarounds

  • Disable the Name Directory public submission form by removing or restricting access to submission functionality
  • Require manual administrator approval for all directory submissions and carefully inspect entries before publishing
  • Implement additional server-side input validation using WordPress hooks to sanitize Name Directory input
  • Deploy a Web Application Firewall with rules to block double-encoded HTML entity patterns in form submissions

The vulnerability manifests in the plugin's sanitization sequence where html_entity_decode() is improperly called both before and after the wp_kses() security filter. For detailed technical analysis of the vulnerable code paths, refer to the WordPress Plugin Code Helper and WordPress Plugin Shortcode Function references.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Plugin Code Helper

  • WordPress Plugin Shortcode Function

  • WordPress Plugin Shortcode Definition

  • WordPress Plugin Changeset 3455023

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-4512: reCaptcha by WebDesignBy XSS Vulnerability

  • CVE-2026-3361: WP Store Locator Plugin XSS Vulnerability

  • CVE-2026-1923: Social Rocket WordPress Plugin XSS Flaw

  • CVE-2026-6048: Flipbox Addon for Elementor XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English