CVE-2026-33406
JSON

5.4medium

Pi-hole has a Stored HTML attribute injection

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Pi-hole Admin Interface is a web interface for managing Pi-hole, a network-level ad and internet tracker blocking application. From 6.0 to before 6.5, configuration values from the /api/config endpoint are placed directly into HTML value="" attributes without escaping in settings-advanced.js, enabling HTML attribute injection. A double quote in any config value breaks out of the attribute context. JavaScript execution is blocked by the server's CSP (script-src 'self'), but injected attributes can alter element styling for UI redressing. The primary attack vector is importing a malicious teleporter backup, which bypasses per-field server-side validation. This vulnerability is fixed in 6.5.

Affected

Product or packageVersionsReported by
pi-hole web>= 6.0, < 6.5CVE List
pi-hole web_interfacefrom 6.0 up to 6.4.1NVD

All scores

GitHub_M5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Pi-hole Admin Interface is a web interface for managing Pi-hole, a network-level ad and internet tracker blocking application. From 6.0 to before 6.5, configuration values from the /api/config endpoint are placed directly into HTML value="" attributes without escaping in settings-advanced.js, enabling HTML attribute injection. A double quote in any config value breaks out of the attribute context. JavaScript execution is blocked by the server's CSP (script-src 'self'), but injected attributes can alter element styling for UI redressing. The primary attack vector is importing a malicious teleporter backup, which bypasses per-field server-side validation. This vulnerability is fixed in 6.5.

NVD (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. Desde la versión 6.0 hasta antes de la 6.5, los valores de configuración del endpoint /API/config se colocan directamente en atributos HTML value=“” sin escapar en settings-advanced.js, lo que permite la inyección de atributos HTML. Una comilla doble en cualquier valor de configuración sale del contexto del atributo. La ejecución de JavaScript está bloqueada por la CSP del servidor (script-src ’self’), pero los atributos inyectados pueden alterar el estilo de los elementos para la manipulación de la interfaz de usuario. El vector de ataque principal es importar una copia de seguridad maliciosa de teleporter, que omite la validación de cada campo en el lado del servidor. Esta vulnerabilidad está corregida en la versión 6.5.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-33406 changed 2026-04-07CVE Terms of Use
NVDCVE-2026-33406 changed 2026-10-26Public domain