Skip to content
Heist/ feed
Back to feed
Low

Pi-hole has a Stored HTML Injection in queries.js

Type: advisorySources: OSV

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, the formatInfo() function in queries.js renders data.upstream, data.client.ip, and data.ede.text into HTML without escaping when a user expands a query row in the Query Log, enabling stored HTML injection. JavaScript execution is blocked by the server's CSP (script-src 'self'). The same fields are properly escaped in the table view (rowCallback), confirming the omission was an oversight. This vulnerability is fixed in 6.5.

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

Source evidence

Pi-hole has a Stored HTML Injection in queries.js

core-osv · Original source

Published 6 Apr 2026, 15:23 UTC

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, the formatInfo() function in queries.js renders data.upstream, data.client.ip, and data.ede.text into HTML without escaping when a user expands a query row in the Query Log, enabling stored HTML injection. JavaScript execution is blocked by the server's CSP (script-src 'self'). The same fields are properly escaped in the table view (rowCallback), confirming the omission was an oversight. This vulnerability is fixed in 6.5.

osv:CVE-2026-33405
Complete source record
{
  "id": "8c87baee12a7c88f457cbb1f4701ba80a80e346213ddcd77382a9e337183d6a8",
  "url": "https://osv.dev/vulnerability/CVE-2026-33405",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Pi-hole has a Stored HTML Injection in queries.js",
    "summary": "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, the formatInfo() function in queries.js renders data.upstream, data.client.ip, and data.ede.text into HTML without escaping when a user expands a query row in the Query Log, enabling stored HTML injection. JavaScript execution is blocked by the server's CSP (script-src 'self'). The same fields are properly escaped in the table view (rowCallback), confirming the omission was an oversight. This vulnerability is fixed in 6.5.",
    "evidence": "osv:CVE-2026-33405",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-33405",
      "aliases": [
        "CVE-2026-33405",
        "GHSA-jx8x-mj2r-62vq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pi-hole/web",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a66d859aecb427faad6adfce144fd97fbeb26a13"
                },
                {
                  "fixed": "7a17e01c28eeb7af2c43384eccf5d859e3061371"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "6.0"
                      },
                      {
                        "fixed": "6.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:pi-hole:web_interface:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.0"
                      },
                      {
                        "last_affected": "6.4.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.4.1",
            "v6.4",
            "v6.3",
            "v6.2.1",
            "v6.1",
            "v6.0.2",
            "v6.0.1",
            "v6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33405.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.573568735Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33405.json",
        "https://github.com/pi-hole/web/security/advisories/GHSA-jx8x-mj2r-62vq",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-33405"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33405.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-33405",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509129,
  "published_at": "2026-04-06T15:23:32.75+00:00"
}