Skip to content
Heist/ feed
Back to feed
Medium

Pi-hole Web Interface has Stored HTML Injection via Local DNS Records (CNAME/Hosts) in data-tag Attribute

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-26952
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:59 UTC · Revision 1

Source evidence

Pi-hole Web Interface has Stored HTML Injection via Local DNS Records (CNAME/Hosts) in data-tag Attribute

core-osv · Original source

Published 19 Feb 2026, 22:43 UTC

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.

osv:CVE-2026-26952
Complete source record
{
  "id": "872e944150369775e99dbaf5ee1dd39b704224a17959e730f45bf2c5c8732164",
  "url": "https://osv.dev/vulnerability/CVE-2026-26952",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Pi-hole Web Interface has Stored HTML Injection via Local DNS Records (CNAME/Hosts) in data-tag Attribute",
    "summary": "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.",
    "evidence": "osv:CVE-2026-26952",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-26952",
      "aliases": [
        "CVE-2026-26952",
        "GHSA-6xp4-jw73-f4qp"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pi-hole/web",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "09e4e0ed396642261ee9ef937a833cb1076a0220"
                },
                {
                  "fixed": "d328f143718022d82dc94c8751121ca41be3b996"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:pi-hole:web_interface:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.4.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d328f143718022d82dc94c8751121ca41be3b996"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "09e4e0ed396642261ee9ef937a833cb1076a0220"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v6.4.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.4",
            "v6.3",
            "v6.2.1",
            "v6.2",
            "v6.1",
            "v6.0.2",
            "v6.0.1",
            "v6.0",
            "v5.21",
            "v5.20.2",
            "v5.20.1",
            "v5.20",
            "v5.19",
            "v5.18.4",
            "v5.18.3",
            "v5.18.2",
            "v5.18.1",
            "v5.18",
            "v5.17",
            "v5.16",
            "v5.15.1",
            "v5.15",
            "v5.14.2",
            "v5.14.1",
            "v5.14",
            "v5.13",
            "v5.12",
            "v5.11",
            "v5.10.1",
            "v5.10",
            "v5.9",
            "v5.8",
            "v5.7",
            "v5.6",
            "v5.5.1",
            "v5.5",
            "v5.4",
            "v5.3.2",
            "v5.3.1",
            "v5.3",
            "v5.2.2",
            "v5.2.1",
            "v5.2",
            "v5.1.1",
            "v5.1",
            "v5.0",
            "v4.3.3",
            "v4.3.2",
            "v4.3",
            "v4.2",
            "v4.1.1",
            "v4.1",
            "v4.0",
            "v3.3",
            "v3.2.1",
            "v3.2",
            "v3.1",
            "v3.0.1a",
            "v3.0.1",
            "v3.0",
            "v2.5.2",
            "v2.5.1",
            "v2.5",
            "v2.4",
            "v2.3.1",
            "v2.3",
            "v2.2",
            "v2.1",
            "v2.0",
            "v1.4.4.2",
            "v1.4.4.1",
            "v1.4.4",
            "v1.4.3.1a",
            "v1.4.3.1",
            "v1.4.3",
            "v1.4.2",
            "v1.4.1",
            "v1.4",
            "v1.3",
            "v1.2",
            "v1.1.7",
            "v1.1.6",
            "v1.1.5",
            "v1.1.4",
            "v1.1.3",
            "v1.1.2",
            "v1.1.1",
            "v1.1.0",
            "v1.0.0",
            "v2.2.0",
            "v2.1.2",
            "2.1.1",
            "2.1.0",
            "v2.1.0-beta",
            "v2.1.0-alpha-1",
            "v2.0.5",
            "v2.0.3",
            "v2.0.2",
            "v2.0.1",
            "v2.0.0",
            "2.0.0",
            "1.2.1",
            "1.2",
            "1.1",
            "1.0",
            "0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-26952.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.334752515Z",
      "provider": "osv",
      "references": [
        "https://github.com/pi-hole/web/releases/tag/v6.4.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26952.json",
        "https://github.com/pi-hole/web/security/advisories/GHSA-6xp4-jw73-f4qp",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-26952",
        "https://github.com/pi-hole/web/commit/d328f143718022d82dc94c8751121ca41be3b996"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-116",
          "CWE-20",
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26952.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-26952",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514079,
  "published_at": "2026-02-19T22:43:58.403+00:00"
}