CVE-2019-14827Moodle
Medium 6.1 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 53
- Auth required
- No
- Published
- May 17, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Moodle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | ≥ 3.5.0 ≤ 3.5.7 |
| moodle | moodle | ≥ 3.6.0 ≤ 3.6.5 |
| moodle | moodle | ≥ 3.7.0 ≤ 3.7.1 |
Official sources
References
Links published by the sources. Open them with care.
- git.moodle.org Patch Vendor Advisory
- moodle.org Patch Vendor Advisory