CVE-2026-26953 Details
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.
A stored HTML injection vulnerability has been identified in the Pi-hole Admin Interface, specifically in versions 6.0 and above. The issue resides in the active sessions table on the API settings page. This vulnerability allows an attacker with valid credentials to inject arbitrary HTML that will be rendered in the browser of any administrator who accesses the active sessions page. The flaw arises because the 'rowCallback' function directly concatenates the 'X-Forwarded-For' header value into an HTML string, which is then inserted into the DOM using jQuery's '.html()' method'. This method interprets the content as HTML, enabling the injection of HTML tags that will be parsed and displayed by the browser. Although Pi-hole's Content Security Policy blocks inline JavaScript, limiting the impact to HTML injection, the vulnerability could escalate to full Cross-Site Scripting in environments with a less restrictive CSP or if it is disabled.
Users can update to Pi-hole version 6.4.1, which addresses this vulnerability by escaping the 'X-Forwarded-For' header value before it is inserted into the DOM.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pi-hole web interface | >= 6.0, < 6.4.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 12, 2026 | Initial Analysis | [email protected] |
| Feb 19, 2026 | New CVE Received | [email protected] |