Moodle 3.10.1 is vulnerable to persistent/stored cross-site scripting (XSS) due to the improper input sanitization on the "Additional HTML Section" via "Header and Footer" parameter in /admin/settings.php. This vulnerability may lead an attacker to steal admin and all user account cookies by storing the malicious XSS payload in Header and Footer.
{
"nvd_published_at": "2023-05-16T20:15:08Z",
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed_at": "2023-05-17T17:05:54Z",
"github_reviewed": true
}