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.
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pi-hole:pi-hole:5.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0"
},
{
"last_affected": "5.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:pi-hole:pi-hole:5.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.1"
},
{
"last_affected": "5.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:pi-hole:pi-hole:5.1.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.1.1"
},
{
"last_affected": "5.1.1"
}
],
"source": "CPE_STRING"
}
]
}
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pi-hole:pi-hole:5.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.0"
},
{
"last_affected": "5.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:pi-hole:pi-hole:5.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.1"
},
{
"last_affected": "5.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:pi-hole:pi-hole:5.1.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.1.1"
},
{
"last_affected": "5.1.1"
}
],
"source": "CPE_STRING"
}
]
}