SecurityContext

CVE-2019-14827: Moodle - Stored XSS

  • Cve: CVE-2019-14827
  • Name: Moodle - Stored XSS
  • Description: A vulnerability was found in Moodle where javaScript injection was possible in some Mustache templates via recursive rendering from contexts. Mustache helper tags that were included in template contexts were not being escaped before that context was injected into another Mustache helper, which could result in script injection in some templates. This affects versions 3.7 to 3.7.1, 3.6 to 3.6.5, 3.5 to 3.5.7 and earlier unsupported versions.
  • Impact: Attackers can execute arbitrary JavaScript in affected templates, potentially leading to cross-site scripting (XSS) and session hijacking.
  • Remediation: Update to the latest supported versions of Moodle where the issue is fixed, or apply security patches provided by Moodle.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft specific template input
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00674
  • Epss percentile: 0.53093
  • Assignee: [email protected]
  • Published at: 2021-05-17T16:15:07Z
  • Age in days: 2017
  • Modified at: 2026-06-17T02:19:06Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-14827
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

UrlSourceTags
https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62284nvdPatch, Vendor Advisory
https://moodle.org/mod/forum/discuss.php?d=391030nvdPatch, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
moodle:moodle>= 3.7.0, <= 3.7.1; >= 3.6.0, <= 3.6.5; >= 3.5.0, <= 3.5.7nonvd/v1/products/moodle/moodle

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 62525
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports