The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-3178

CVE-2026-3178: WordPress Name Directory XSS Vulnerability

CVE-2026-3178 is a stored XSS flaw in the WordPress Name Directory plugin that allows unauthenticated attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation steps.

Published: March 13, 2026

CVE-2026-3178 Overview

The Name Directory plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the name_directory_name parameter affecting all versions up to and including 1.32.1. Due to insufficient input sanitization and output escaping, unauthenticated attackers can inject arbitrary web scripts into pages that execute whenever a user accesses the compromised page. This vulnerability was partially patched in versions 1.30.3 and 1.32.1, but the fix was incomplete.

Critical Impact

Unauthenticated attackers can inject persistent malicious scripts that execute in the context of any user viewing the affected pages, potentially leading to session hijacking, credential theft, and administrative account compromise.

Affected Products

  • Name Directory plugin for WordPress versions up to and including 1.32.1
  • Name Directory plugin for WordPress versions 1.30.3 and 1.32.1 (partially patched)

Discovery Timeline

  • 2026-03-11 - CVE CVE-2026-3178 published to NVD
  • 2026-03-11 - Last updated in NVD database

Technical Details for CVE-2026-3178

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability arises from improper handling of user-supplied input in the Name Directory plugin. The plugin fails to properly sanitize the name_directory_name parameter before storing it in the database and subsequently fails to escape the output when rendering it on web pages. This allows attackers to persist malicious JavaScript code that executes in the browser context of any user who views the affected content.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). What makes this particularly dangerous is that the attack can be performed by unauthenticated users, meaning no login credentials are required to exploit the flaw. The stored nature of the XSS means the malicious payload persists across sessions and can affect multiple users over time.

Root Cause

The root cause lies in the admin.php and helpers.php files within the plugin, specifically around lines 930-931 in admin.php and line 602 in helpers.php. The plugin implements insufficient input sanitization when processing the name_directory_name parameter and fails to apply proper output escaping when displaying user-controlled content. This dual failure—at both input validation and output encoding stages—creates a pathway for XSS attacks.

Attack Vector

The attack is network-based and requires no authentication or user interaction to inject the payload. An attacker submits a crafted request containing malicious JavaScript within the name_directory_name parameter. Since the plugin stores this unsanitized input directly, the script becomes part of the page content. When any user subsequently loads a page containing the injected script, the malicious code executes in their browser session.

Attackers can exploit this vulnerability to steal session cookies, redirect users to phishing sites, modify page content, or perform actions on behalf of authenticated users including administrators.

Detection Methods for CVE-2026-3178

Indicators of Compromise

  • Presence of unexpected JavaScript code in Name Directory entries or database records
  • Suspicious <script> tags, event handlers (e.g., onerror, onload), or encoded JavaScript in name_directory_name fields
  • Unusual network requests originating from WordPress pages to external domains
  • Reports of unexpected browser behavior or redirects from users viewing Name Directory content

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block XSS patterns in incoming requests targeting the Name Directory plugin endpoints
  • Deploy Content Security Policy (CSP) headers to restrict script execution and report violations
  • Monitor WordPress database for entries containing suspicious HTML or JavaScript in Name Directory tables
  • Review server access logs for POST requests to Name Directory endpoints containing script tags or encoded payloads

Monitoring Recommendations

  • Enable WordPress audit logging to track changes to Name Directory entries
  • Configure real-time alerting for CSP violation reports that may indicate XSS exploitation attempts
  • Regularly scan stored content in the Name Directory plugin tables for malicious scripts
  • Monitor for unusual admin account activity that could indicate session hijacking

How to Mitigate CVE-2026-3178

Immediate Actions Required

  • Update the Name Directory plugin to the latest available version beyond 1.32.1 when a complete patch is released
  • Review and audit all existing Name Directory entries for potentially malicious content
  • Implement a Web Application Firewall with XSS protection rules enabled
  • Consider temporarily disabling the Name Directory plugin if it is not critical to operations until a complete fix is available

Patch Information

The vulnerability was partially addressed in versions 1.30.3 and 1.32.1, but the fixes were incomplete. Administrators should monitor the WordPress Plugin Changeset for the latest security updates. Additional technical details are available in the Wordfence Vulnerability Report.

Workarounds

  • Implement server-side input validation to strip or encode HTML entities from the name_directory_name parameter
  • Deploy Content Security Policy headers with strict script-src directives to mitigate the impact of injected scripts
  • Restrict access to Name Directory submission forms to authenticated users only if possible
  • Use a security plugin that provides XSS filtering and input sanitization for WordPress
bash
# Example: Add CSP header in Apache .htaccess
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none';"

# Example: Add CSP header in Nginx configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none';";

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.07%

  • 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 Review

  • WordPress Plugin Code Review

  • WordPress Plugin Helper Review

  • WordPress Changeset #3478625

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2023-54358: adivaha Travel Plugin XSS Vulnerability

  • CVE-2026-3005: WordPress List Category Posts XSS Flaw

  • CVE-2026-5742: WordPress UsersWP Plugin XSS Vulnerability

  • CVE-2026-4336: WordPress Ultimate FAQ Accordion XSS Flaw
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