# CVE-2019-14827: A vulnerability was found in Moodle where javaScript injection was possible in some Mustache templates via recursive rendering from context…

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2021-05-17T15:37:26.000Z
- Modified: 2026-06-17T02:19:06.857Z
- Weaknesses: CWE-94
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- Moodle: 3.7 to 3.7.1, 3.6 to 3.6.5, 3.5 to 3.5.7 and earlier unsupported versions
- moodle moodle: from 3.5.0 up to 3.5.7; from 3.6.0 up to 3.6.5; from 3.7.0 up to 3.7.1

## Every score

- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://moodle.org/mod/forum/discuss.php?d=391030> (patch, vendor-advisory)
- <https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62284> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2019-14827](https://www.cve.org/CVERecord?id=CVE-2019-14827), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2019-14827](https://nvd.nist.gov/vuln/detail/CVE-2019-14827), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-14827 · Whole record: https://cve.day/CVE-2019-14827.json · Rebuilt by cve.day 2026-11-25T22:57:50.147Z
