A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-26952

CVE-2026-26952: Pi-hole Admin Interface XSS Vulnerability

CVE-2026-26952 is a stored XSS flaw in Pi-hole Admin Interface affecting versions 6.4 and below. Attackers can inject HTML through DNS records configuration. This article covers technical details, affected versions, and fixes.

Published: February 20, 2026

CVE-2026-26952 Overview

CVE-2026-26952 is a stored HTML injection vulnerability affecting the Pi-hole Admin Interface, the web-based management console for Pi-hole network-level ad and tracker blocking application. Versions 6.4 and below contain improper input validation in the local DNS records configuration page, allowing authenticated administrators to inject malicious HTML code that persists in the Pi-hole configuration and executes whenever the DNS records table is viewed.

Critical Impact

Authenticated administrators can inject persistent HTML code through DNS record values, potentially enabling UI manipulation, phishing attacks within the admin interface, or exploitation of other authenticated users viewing the DNS records table.

Affected Products

  • Pi-hole Admin Interface version 6.4 and earlier
  • Pi-hole Web Interface (pi-hole/web repository)

Discovery Timeline

  • 2026-02-19 - CVE-2026-26952 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2026-26952

Vulnerability Analysis

The vulnerability exists in the populateDataTable() function within the Pi-hole Admin Interface. When processing DNS record entries, the function retrieves the full DNS record value exactly as entered by the user through the API. This value is then inserted directly into the data-tag HTML attribute without any escaping or sanitization of special characters. The lack of output encoding creates an injection point where user-controlled data becomes part of the HTML document structure.

When an attacker supplies a DNS record value containing double quote characters ("), they can prematurely close the data-tag attribute and inject additional HTML attributes or elements. While Pi-hole's implementation of a Content Security Policy (CSP) that blocks inline JavaScript significantly limits the attack surface, the HTML injection can still be leveraged for UI manipulation, defacement, or social engineering attacks against other administrators accessing the DNS records page.

Root Cause

The root cause is classified as CWE-20 (Improper Input Validation). The vulnerable code directly interpolates user-supplied data into HTML template strings without proper encoding. Specifically, the data-tag="${data}" template literal allows attribute breakout when the data variable contains quote characters, enabling injection of arbitrary HTML attributes.

Attack Vector

The attack requires network access and low-privilege authentication (administrator access to the Pi-hole interface). An attacker with admin credentials can:

  1. Navigate to the local DNS records configuration page
  2. Create a new DNS record with a malicious payload containing double quotes
  3. The injected HTML is stored in the Pi-hole configuration
  4. Any administrator subsequently viewing the DNS records table will have the injected HTML rendered in their browser

The security patch addresses this vulnerability by switching from string concatenation to DOM element creation using document.createElement(), which properly handles attribute values through the dataset API:

javascript
     },
     rowCallback(row, data) {
       $(row).attr("data-id", data);
-      const button = `<button type="button"
-                      class="btn btn-danger btn-xs"
-                      id="delete${endpoint}${utils.hexEncode(data)}"
-                      data-tag="${data}"
-                      data-type="${endpoint}"
-                      ${setByEnv ? "disabled" : ""}>
-                      <span class="far fa-trash-alt"></span>
-                    </button>`;
+
+      // Create delete button
+      const button = document.createElement("button");
+
+      // Set button ID and add CSS classes
+      button.id = `delete${endpoint}${utils.hexEncode(data)}`
+      button.classList.add("btn", "btn-danger", "btn-xs");
+
+      // Set data-* attributes
+      button.dataset.type = endpoint;
+      button.dataset.tag = data;
+
+      // Disable the button if set by environment variables
+      button.disabled = setByEnv ? true : false;
+
+      // Add a trash icon to the button
+      const iconSpan = document.createElement("span");
+      iconSpan.classList.add("far", "fa-trash-alt");
+      button.append(iconSpan);

Source: GitHub Commit Update

Detection Methods for CVE-2026-26952

Indicators of Compromise

  • DNS record entries containing double quote characters (") followed by HTML attribute syntax (e.g., onclick, onmouseover, style)
  • Unusual or unexpected HTML elements appearing in the DNS records table view
  • Log entries showing DNS record creation with suspicious payloads containing angle brackets (<, >) or attribute injection patterns

Detection Strategies

  • Review Pi-hole DNS record configurations for entries containing HTML special characters or attribute injection patterns
  • Monitor admin interface access logs for unusual patterns of DNS record modifications
  • Implement web application firewall (WAF) rules to detect HTML injection attempts in form submissions to the DNS records API endpoint
  • Audit administrator account activity for unexpected DNS record changes

Monitoring Recommendations

  • Enable verbose logging on the Pi-hole Admin Interface to capture DNS record modification events
  • Set up alerting for DNS record entries containing potentially malicious characters (quotes, angle brackets, event handlers)
  • Regularly review the /etc/pihole/ configuration files for anomalous entries
  • Monitor browser console errors that may indicate failed injection attempts blocked by CSP

How to Mitigate CVE-2026-26952

Immediate Actions Required

  • Upgrade Pi-hole Admin Interface to version 6.4.1 or later immediately
  • Review existing DNS records for any suspicious entries containing HTML special characters
  • Audit administrator account access and ensure proper access controls are in place
  • Consider temporarily restricting admin interface access to trusted networks until patching is complete

Patch Information

The vulnerability has been fixed in Pi-hole Admin Interface version 6.4.1. The fix replaces insecure string-based HTML generation with safe DOM manipulation using document.createElement() and the dataset API, which properly encodes attribute values and prevents HTML injection.

  • Fixed Version:6.4.1
  • Patch Commit:d328f143718022d82dc94c8751121ca41be3b996
  • Release Notes:GitHub Release v6.4.1
  • Security Advisory:GHSA-6xp4-jw73-f4qp

Workarounds

  • Restrict administrative access to the Pi-hole interface to only trusted users and networks
  • Implement network-level access controls (firewall rules, VPN requirements) for accessing the admin interface
  • Enable and monitor the existing Content Security Policy, which provides partial mitigation by blocking inline JavaScript execution
  • Regularly audit DNS records for suspicious entries until the patch can be applied
bash
# Update Pi-hole to the latest version
pihole -up

# Verify the installed web interface version
pihole -v

# Review DNS records for suspicious entries
cat /etc/pihole/custom.list | grep -E '["<>]'

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechPi Hole

  • SeverityMEDIUM

  • CVSS Score5.4

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Commit Update

  • GitHub Release v6.4.1

  • GitHub Security Advisory GHSA-6xp4-jw73-f4qp
  • Related CVEs
  • CVE-2026-26953: Pi-hole Admin Interface XSS Vulnerability
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
  • English
  • 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