{"id":"CVE-2020-35659","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.","modified":"2026-04-10T04:25:56.344157Z","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pi-hole/pi-hole","events":[{"introduced":"0"},{"fixed":"41bdb741b7e1a70184ecd7dbfc23f3ebcaa5e3bc"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"5.2.2"}]}}],"versions":["2.0","2.8","V2.5.1","V2.9.1","V2.9.2","v2.1","v2.10","v2.10.1","v2.10.2","v2.11","v2.11.1","v2.11.2","v2.12","v2.12.1","v2.13","v2.13.1","v2.13.2","v2.2","v2.3","v2.4","v2.5.2","v2.5.3","v2.6","v2.6.1","v2.6.1.1","v2.6.1.2","v2.6.2","v2.6.3","v2.7","v2.7.1","v2.8.1","v2.9","v2.9.3","v2.9.4","v2.9.4a","v2.9.5","v3.0","v3.0.1","v3.1","v3.1.4","v3.2","v3.2.1","v3.3","v3.3.1","v4.0","v4.1","v4.1.1","v4.2","v4.2.1","v4.2.2","v4.3","v4.3.1","v4.3.2","v4.3.3","v4.3.4","v4.3.5","v4.4","v5.0","v5.1","v5.1.1","v5.1.2","v5.2","v5.2.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-35659.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}