CVE-2021-3812 Cross-site Scripting (XSS) - Reflected in pi-hole/adminlte
Reflected Cross-Site Scripting in the Pi-hole admin interface allows attackers to execute arbitrary scripts in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-3812?
CVE-2021-3812 is a medium-severity cross-site scripting vulnerability in pi-hole/adminlte, published on 17 Sep 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
adminlte is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Weakness: CWE-79
Which versions are affected by CVE-2021-3812?
It affects 1 product.
Products include Pi-Hole Web Interface.
How do I fix CVE-2021-3812?
No fix has been published for CVE-2021-3812 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-3812 being exploited?
There is no known exploitation of CVE-2021-3812 in the wild and no public exploit code.
Other vulnerabilities in pi-hole/adminlte
- CVE-2026-33765 Pi-hole Web Interface has a Command Injection Vulnerability
- CVE-2023-23614 Improper session handling of "Remember me for 7 days" functionality
- CVE-2025-59151 Pi-hole Admin Interface vulnerable to HTTP response header injection via CRLF injection
- CVE-2021-3706 Sensitive Cookie Without 'HttpOnly' Flag in pi-hole/adminlte
- CVE-2021-41175 Stored XSS in Client Groups Management (Authenticated)