Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
5.4
Pi-hole Admin Interface: Malicious HTML Injected into Admin Sessions
CVE-2026-26953
Summary
Pi-hole versions 6.0 and above have a security flaw that allows an attacker to inject malicious code into the web interface. This can happen when an attacker sends a special request to the Pi-hole admin interface with their own malicious HTML code. To fix this, update to version 6.4.1 or later.
What to do
No fix is available yet. Check with your software vendor for updates.
Affected software
| Vendor | Product | Affected versions | Fix available |
|---|---|---|---|
| pi-hole | web_interface | > 6.0 , <= 6.4.1 | – |
Original title
Pi-hole Admin Interface is a web interface for managing Pi-hole, a network-level ad and internet tracker blocking application. Versions 6.0 and above have a Stored HTML Injection vulnerability in ...
Original description
Pi-hole Admin Interface is a web interface for managing Pi-hole, a network-level ad and internet tracker blocking application. Versions 6.0 and above have a Stored HTML Injection vulnerability in the active sessions table located on the API settings page, allowing an attacker with valid credentials to inject arbitrary HTML code that will be rendered in the browser of any administrator who visits the active sessions page. The rowCallback function contains the value data.x_forwarded_for, which is directly concatenated into an HTML string and inserted into the DOM using jQuery’s .html() method. This method interprets the content as HTML, which means that any HTML tags present in the value will be parsed and rendered by the browser. An attacker can use common tools such as curl, wget, Python requests, Burp Suite, or even JavaScript fetch() to send an authentication request with an X-Forwarded-For header that contains malicious HTML code instead of a legitimate IP address. Since Pi-hole implements a Content Security Policy (CSP) that blocks inline JavaScript, the impact is limited to pure HTML injection without the ability to execute scripts. This issue has been fixed in version 6.4.1.
nvd CVSS3.1
5.4
Vulnerability type
CWE-20
Improper Input Validation
CWE-79
Cross-site Scripting (XSS)
CWE-116
Published: 19 Feb 2026 · Updated: 13 Mar 2026 · First seen: 6 Mar 2026