# CVE-2020-35659: The DNS query log in Pi-hole before 5.2.2 is vulnerable to stored XSS.

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2020-12-24T15:59:04.000Z
- Modified: 2026-06-17T03:14:05.113Z
- Weaknesses: CWE-79
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pi-hole pi-hole: before 5.2.2

## Every score

- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/pi-hole/AdminLTE/pull/1665> (patch, third-party-advisory)
- <https://discourse.pi-hole.net/t/pi-hole-core-web-v5-2-2-and-ftl-v5-3-3-released/41998> (release-notes, vendor-advisory)
- <https://blog.mirch.io/2020/12/24/pihole-xss/> (third-party-advisory)

## Sources

- CVE List: [CVE-2020-35659](https://www.cve.org/CVERecord?id=CVE-2020-35659), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-35659](https://nvd.nist.gov/vuln/detail/CVE-2020-35659), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-35659 · Whole record: https://cve.day/CVE-2020-35659.json · Rebuilt by cve.day 2026-11-25T22:57:56.394Z
