The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in some returnurl parameters. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website. This flaw allows a remote attacker to perform cross-site scripting (XSS) attacks.
{
"versions": [
{
"introduced": "3.9.0"
},
{
"fixed": "3.9.19"
},
{
"introduced": "3.11.0"
},
{
"fixed": "3.11.12"
},
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.6"
},
{
"introduced": "0"
},
{
"last_affected": "4.1.0-NA"
}
]
}