Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-53533: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in pi-hole web

0
Medium
VulnerabilityCVE-2025-53533cvecve-2025-53533cwe-79
Published: Mon Oct 27 2025 (10/27/2025, 19:06:32 UTC)
Source: CVE Database V5
Vendor/Project: pi-hole
Product: web

Description

CVE-2025-53533 is a reflected cross-site scripting (XSS) vulnerability in the Pi-hole Admin Interface versions 6. 2. 1 and earlier. The vulnerability arises because the 404 error page improperly includes the requested URL path in the body tag's class attribute without sanitization, allowing an attacker to inject malicious JavaScript. When a victim visits a crafted URL, the attacker's code executes in their browser, potentially leading to session hijacking or other malicious actions. This vulnerability requires no authentication but does require user interaction (clicking the malicious link). It has been patched in Pi-hole version 6. 3. The CVSS 4. 0 base score is 5.

AI-Powered Analysis

AILast updated: 10/27/2025, 19:37:46 UTC

Technical Analysis

The vulnerability identified as CVE-2025-53533 affects the Pi-hole Admin Interface, a web-based management tool for the Pi-hole network-level ad and tracker blocking application. Versions 6.2.1 and earlier are susceptible to a reflected cross-site scripting (XSS) attack due to improper neutralization of user input in the 404 error page. Specifically, the requested URL path is embedded directly into the class attribute of the body tag without proper sanitization or escaping. An attacker can exploit this by crafting a malicious URL containing an onload attribute or other JavaScript payload within the path segment. When a victim accesses this URL, the injected JavaScript executes in their browser context, potentially allowing the attacker to steal cookies, perform actions on behalf of the user, or deliver further malicious payloads. The vulnerability does not require any privileges or authentication, but it does require the victim to click or visit the malicious link. The issue has been addressed in Pi-hole version 6.3 by properly sanitizing the URL path before rendering it in the error page. The CVSS 4.0 vector indicates network attack vector, low attack complexity, no privileges required, user interaction required, and limited scope impact, resulting in a medium severity score of 5.1.

Potential Impact

For European organizations, the impact of this vulnerability can be significant depending on the deployment of Pi-hole within their networks. Pi-hole is commonly used in corporate, educational, and home environments to block ads and trackers at the DNS level. Exploitation of this XSS vulnerability could allow attackers to execute arbitrary JavaScript in the context of the Pi-hole admin interface, potentially leading to session hijacking, theft of administrative credentials, or manipulation of Pi-hole settings. This could degrade network security, allow bypassing of ad-blocking controls, or facilitate further lateral movement within the network. Since the vulnerability requires user interaction, phishing or social engineering campaigns could be used to lure administrators or users into clicking malicious links. The medium CVSS score reflects moderate risk, but the exposure of administrative interfaces to the internet or untrusted networks increases the potential impact. Organizations relying on Pi-hole for network security and privacy should consider this vulnerability a priority for patching to maintain integrity and availability of their DNS filtering services.

Mitigation Recommendations

European organizations should immediately upgrade all Pi-hole Admin Interface installations to version 6.3 or later, where the vulnerability is patched. If immediate upgrading is not feasible, organizations should implement strict access controls to restrict access to the Pi-hole admin interface, such as VPN-only access or IP whitelisting, to reduce exposure to untrusted users. Web application firewalls (WAFs) can be configured to detect and block suspicious URL patterns that include script injection attempts in the path. Educate users and administrators about the risks of clicking unsolicited or suspicious links, especially those purporting to be related to network management tools. Regularly audit Pi-hole logs for unusual access patterns or error page requests that may indicate attempted exploitation. Additionally, consider deploying Content Security Policy (CSP) headers on the Pi-hole web interface to limit the impact of any potential XSS by restricting script execution sources. Finally, maintain an up-to-date inventory of Pi-hole deployments to ensure all instances are patched promptly.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-07-02T15:15:11.515Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68ffc684ba6dffc5e2095d0f

Added to database: 10/27/2025, 7:22:44 PM

Last enriched: 10/27/2025, 7:37:46 PM

Last updated: 10/27/2025, 8:26:27 PM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats