CVE-2026-26952

Pi-hole Admin Interface is a web interface for managing Pi-hole, a network-level ad and internet tracker blocking application. Versions 6.4 and below are vulnerable to stored HTML injection through the local DNS records configuration page, which allows an authenticated administrator to inject code that is stored in the Pi-hole configuration and rendered every time the DNS records table is viewed. The populateDataTable() function contains a data variable with the full DNS record value exactly as entered by the user and returned by the API. This value is inserted directly into the data-tag HTML attribute without any escaping or sanitization of special characters. When an attacker supplies a value containing double quotes ("), they can prematurely “close” the data-tag attribute and inject additional HTML attributes into the element. Since Pi-hole implements a Content Security Policy (CSP) that blocks inline JavaScript, the impact is limited. This issue has been fixed in version 6.4.1.
Configurations

Configuration 1 (hide)

cpe:2.3:a:pi-hole:web_interface:*:*:*:*:*:*:*:*

History

12 Mar 2026, 16:33

Type Values Removed Values Added
CPE cpe:2.3:a:pi-hole:web_interface:*:*:*:*:*:*:*:*
First Time Pi-hole
Pi-hole web Interface
References () https://github.com/pi-hole/web/commit/d328f143718022d82dc94c8751121ca41be3b996 - () https://github.com/pi-hole/web/commit/d328f143718022d82dc94c8751121ca41be3b996 - Patch
References () https://github.com/pi-hole/web/releases/tag/v6.4.1 - () https://github.com/pi-hole/web/releases/tag/v6.4.1 - Release Notes
References () https://github.com/pi-hole/web/security/advisories/GHSA-6xp4-jw73-f4qp - () https://github.com/pi-hole/web/security/advisories/GHSA-6xp4-jw73-f4qp - Third Party Advisory
Summary
  • (es) La Interfaz de administración de Pi-hole es una interfaz web para gestionar Pi-hole, una aplicación de bloqueo de anuncios y rastreadores de internet a nivel de red. Las versiones 6.4 e inferiores son vulnerables a la inyección de HTML almacenado a través de la página de configuración de registros DNS locales, lo que permite a un administrador autenticado inyectar código que se almacena en la configuración de Pi-hole y se renderiza cada vez que se visualiza la tabla de registros DNS. La función populateDataTable() contiene una variable de datos con el valor completo del registro DNS exactamente como lo introdujo el usuario y devuelto por la API. Este valor se inserta directamente en el atributo HTML data-tag sin ningún escape o sanitización de caracteres especiales. Cuando un atacante proporciona un valor que contiene comillas dobles ("), pueden 'cerrar' prematuramente el atributo data-tag e inyectar atributos HTML adicionales en el elemento. Dado que Pi-hole implementa una Política de Seguridad de Contenido (CSP) que bloquea JavaScript en línea, el impacto es limitado. Este problema ha sido solucionado en la versión 6.4.1.

19 Feb 2026, 23:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-19 23:16

Updated : 2026-03-12 16:33


NVD link : CVE-2026-26952

Mitre link : CVE-2026-26952

CVE.ORG link : CVE-2026-26952


JSON object : View

Products Affected

pi-hole

  • web_interface
CWE
CWE-20

Improper Input Validation

CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-116

Improper Encoding or Escaping of Output