CVE-2026-33406: Pi-hole has a Stored HTML attribute injection
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Pi-hole Admin Interfaceto a version that resolves this vulnerability.Fixed in 6.5
Event History
Frequently Asked Questions
What is the severity of CVE-2026-33406?
CVE-2026-33406 has a medium severity rating due to its potential for exploitation via stored HTML attribute injection.
How do I fix CVE-2026-33406?
To fix CVE-2026-33406, upgrade your Pi-hole Admin Interface to version 6.5 or later.
What versions of Pi-hole are affected by CVE-2026-33406?
CVE-2026-33406 affects Pi-hole Admin Interface versions from 6.0 up to and including 6.4.1.
What impact does CVE-2026-33406 have on Pi-hole users?
CVE-2026-33406 could allow attackers to inject malicious code into the Pi-hole Admin Interface, compromising the security of the application.
Is there a workaround for CVE-2026-33406?
Currently, the best mitigation for CVE-2026-33406 is to upgrade to the latest version, as there are no known workarounds.