CVE-2021-27131
Moodle vulnerable to stored Cross-site Scripting
5.4
MEDIUM
CVSS 3.1
EPSS 0.29%
Description
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.
How to fix CVE-2021-27131
To remediate CVE-2021-27131, upgrade the affected package to a fixed version below.
- —upgrade to 3.10.2 or later
- —no fix listed
Is CVE-2021-27131 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 3.10.1, < 3.10.2
- from 0, <= 3.10.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |