Vulnerability · Published May 16, 2023 · Assigned by mitre

CVE-2021-27131

Medium 5.4

In plain English

A medium-severity security flaw in the moodle/moodle package (Packagist). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities).

Severity (CVSS NVD)5.4Medium
Exploit odds (30 days)0.7%top 47.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistmoodle/moodleno fix listedGHSA-w2pm-fr62-jgv4

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References