A vulnerability was found in Moodle where javaScript injection was possible in some Mustache templates via recursive rendering from contexts
Published May 17, 2021
6.1
MEDIUMCVSS 3.1
EPSS 0.67%
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.
Affected products
- Vendor n/a Product Moodle Defaultn/a
- Version 3.7 to 3.7.1, 3.6 to 3.6.5, 3.5 to 3.5.7 and earlier unsupported versionsStatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Moodle | n/a |
|
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.67% (0.00668) | 50.17th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.67% (0.00668) | 46.87th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.62% (0.00623) | 67.65th | v4 (v2025.03.14) |
| Mar 29, 2025 | 1.73% (0.01729) | 71.08th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.57% (0.00570) | 66.63th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.08% (0.00085) | 37.81th | v3 (v2023.03.01) |
| Jan 31, 2024 | 0.08% (0.00085) | 35.28th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.08% (0.00078) | 31.98th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.62% (0.00624) | 17.80th | v5 (v2026.06.15) |
| May 18, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (2)
- https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62284 x_refsource_MISCPatchVendor Advisory
- https://moodle.org/mod/forum/discuss.php?d=391030 x_refsource_MISCPatchVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-62284 | x_refsource_MISCPatchVendor Advisory | |
| https://moodle.org/mod/forum/discuss.php?d=391030 | x_refsource_MISCPatchVendor Advisory |
Change history (0)
No recorded changes yet.