What’s Vulnerable › Vulnerabilities
CVE-2020-35659
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2020-12-24 · updated 2026-06-17
- Weakness: CWE-79
Description
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.
Affected products
- pi-hole: before 5.2.2 — fixed in 5.2.2
How to fix
Upgrade to a fixed version: pi-hole 5.2.2. Check the vendor advisory for mitigations.
References
- https://blog.mirch.io/2020/12/24/pihole-xss/
- https://discourse.pi-hole.net/t/pi-hole-core-web-v5-2-2-and-ftl-v5-3-3-released/41998
- https://github.com/pi-hole/AdminLTE/pull/1665
- https://blog.mirch.io/2020/12/24/pihole-xss/
- https://discourse.pi-hole.net/t/pi-hole-core-web-v5-2-2-and-ftl-v5-3-3-released/41998
- https://github.com/pi-hole/AdminLTE/pull/1665
Get alerted when CVE-2020-35659 or the next vulnerability affects your stack