{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "5.2.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "41bdb741b7e1a70184ecd7dbfc23f3ebcaa5e3bc"
            }
          ],
          "repo": "https://github.com/pi-hole/pi-hole",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "The DNS query log in Pi-hole before 5.2.2 is vulnerable to stored XSS. An attacker with the ability to directly or indirectly query DNS with a malicious hostname can cause arbitrary JavaScript to execute when the Pi-hole administrator visits the Query Log or Long-term data Query Log page.",
  "id": "CVE-2020-35659",
  "modified": "2026-03-13T21:46:42.181551033Z",
  "published": "2020-12-24T16:15:15.490Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://blog.mirch.io/2020/12/24/pihole-xss/"
    },
    {
      "type": "ADVISORY",
      "url": "https://discourse.pi-hole.net/t/pi-hole-core-web-v5-2-2-and-ftl-v5-3-3-released/41998"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pi-hole/AdminLTE/pull/1665"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}