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