CVE-2021-27131: moodle Cross-site Scripting
Vulnerability summary
CVE-2021-27131 is a medium (CVSS 5.4) Cross-site Scripting vulnerability in moodle. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 52% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 16-05-2023PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 is leading an attacker to steal admin and all user account cookies by storing the malicious XSS payload in Header and Footer. NOTE: this is disputed by the vendor because the "Additional HTML Section" for "Header and Footer" can only be supplied by an administrator, who is intentionally allowed to enter unsanitized input (e.g., site-specific JavaScript).
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
0.69%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
0.00 pp
From 0.69% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCves Assigned
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Moodle1 product
- moodleEOL3.10.1
1 vendor · 1 product
References
3 links- github.com/moodle/moodleProduct