VDB

CVE-2021-27131

CVE-2021-27131 PUBLISHED CVSS 5.400000095367432 MEDIUM

Moodle vulnerable to stored Cross-site Scripting

Reported by mitre · Published May 16, 2023

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

Risk scores

CVSS 3.1
5.400000095367432
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
n/an/an/a
n/an/a*
moodlemoodle3.10.1

Timeline

  • May 16, 2023 CVE Published
  • May 17, 2023 EPSS Score (30 in total, the first dated here)
  • Nov 7, 2023 CVE Updated
  • Apr 2, 2026 Security Advisory
  • Aug 7, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-27131
vulnetix vdb fixes CVE-2021-27131

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-27131/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›