Medium severity5.4NVD Advisory· Published May 16, 2023· Updated Jun 17, 2026
CVE-2021-27131
CVE-2021-27131
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).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
moodle/moodlePackagist | <= 3.10.1 | — |
Affected products
4- osv-coords2 versions
>= 3.10.1, < 3.10.2+ 1 more
- (no CPE)range: >= 3.10.1, < 3.10.2
- (no CPE)range: <= 3.10.1
Patches
Vulnerability mechanics
References
4News mentions
0No linked articles in our index yet.