Pi-hole 5.0, 5.1, and 5.1.1 allows XSS via the Options header to the admin/ URI. A remote user is able to inject arbitrary web script or HTML due to incorrect sanitization of user-supplied data and achieve a Reflected Cross-Site Scripting attack against other users and steal the session cookie.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "5.0"
},
{
"last_affected": "5.0"
}
],
"source": "CPE_STRING",
"vendor_product": "pi-hole:pi-hole",
"cpes": [
"cpe:2.3:a:pi-hole:pi-hole:5.0:*:*:*:*:*:*:*"
]
}
]
}{
"source": "CPE_STRING",
"cpe": [
"cpe:2.3:a:pi-hole:pi-hole:5.0:*:*:*:*:*:*:*",
"cpe:2.3:a:pi-hole:pi-hole:5.1:*:*:*:*:*:*:*",
"cpe:2.3:a:pi-hole:pi-hole:5.1.1:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "5.0"
},
{
"last_affected": "5.0"
},
{
"introduced": "5.1"
},
{
"last_affected": "5.1"
},
{
"introduced": "5.1.1"
},
{
"last_affected": "5.1.1"
}
]
}