# CVE-2022-40313

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-09-30 · Modified: 2025-05-20
- Aliases: UBUNTU-CVE-2022-40313
- Record: https://cvemate.com/vulnerability/CVE-2022-40313 · JSON: https://cvemate.com/vulnerability/CVE-2022-40313/json

## Description

```text
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- EPSS: 0.764%, percentile 56.774%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu moodle (Ubuntu): All versions (No fix recorded)
- fedoraproject extra\_packages\_for\_enterprise\_linux: 8.0
- fedoraproject fedora: 35 \| 36
- moodle moodle: ≥ 3.9.0, \< 3.9.17 \| ≥ 3.11.0, \< 3.11.10 \| ≥ 4.0.0, \< 4.0.4

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2128146>
- <https://moodle.org/mod/forum/discuss.php?d=438392>
- <https://ubuntu.com/security/CVE-2022-40313>
- <https://www.cve.org/CVERecord?id=CVE-2022-40313>

---

Data as of 2026-12-05T13:44:07.717Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
