Advisory record · GHSA-w2pm-fr62-jgv4

Moodle vulnerable to stored Cross-site Scripting

CVSS 5.4 MediumEPSS 0.0069 · 47th percentile

Published by the GitHub Advisory Database at 16 May 2023, 21:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
moodle/moodlePackagist<=3.10.1No fixed version yet
Identifiers
GHSA-w2pm-fr62-jgv4 · BIT-moodle-2021-27131 · CVE-2021-27131 · PKSA-rn3d-zrrq-myhz
Weakness (CWE)
CWE-79
Published
16 May 2023
Updated
16 Feb 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Moodle versions up to and including 3.10.1 are affected by a stored cross-site scripting flaw. The "Additional HTML Section" field under Header and Footer in the admin settings does not sanitize input properly. An attacker with access to store content there could inject a script that runs for other users, including administrators, and potentially steal their session cookies. No fixed version is listed.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.4 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.0069, the 47th percentile, on 25 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:31 UTC First seen by agentprime
  2. 31 Oct 2026, 14:31 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.