Vulnerability · CVE-2022-40313
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.
Published Sep 30, 2022 · catalog updated Jun 17, 2026 · Recursive rendering of Mustache
Last checked Nov 4, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2022-40313. EPSS is 0.72%. Act only if a listed version of Recursive rendering of Mustache is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Recursive rendering of Mustache).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
Same product and reporting
- CVE-2026-102588 · Medium
- CVE-2026-102587 · Low
- CVE-2026-102586 · Medium
- CVE-2026-102585 · Medium
- CVE-2026-102584 · Medium
- Severity
- High7.1
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.72%
- Remediation
- Version ranges on file
- Affected products
- cpe fedoraproject/extra packages for enterprise linux · cpe fedoraproject/fedora · cpe moodle/moodle
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe fedoraproject/extra packages for enterprise linux8.0
- cpe fedoraproject/fedora35
- cpe fedoraproject/fedora36
- cpe moodle/moodle< 3.11.10
- cpe moodle/moodle< 3.9.17
- cpe moodle/moodle< 4.0.4
How to fix CVE-2022-40313
Upgrade
CVE-2022-40313 lists a fix boundary at 3.11.10. Compare the installed build with that boundary before you change production.
Version check
Affected < 3.11.10
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2022-40313. EPSS is 0.72%. Act only if a listed version of Recursive rendering of Mustache is installed.
Which versions are affected?
Compare what you have installed with fedoraproject/extra packages for enterprise linux 8.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-79: Cross-site Scripting (XSS). EPSS 0.72%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Technology hubs
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Sep 30, 2022 · Monitored products — high
Detected
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.
Jun 17, 2026 · Monitored products — high
Updated
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.
Sources
- CVE.orgVulnerability recordCVE-2022-40313
Official CVE identifier
cve.org - Monitored products — highVendor advisoryCVE-2022-40313
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.
nvd.nist.gov
References
Freshness
Last verified in this catalog Nov 4, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- CVE.orgNov 4, 2026
- Monitored products — highNov 4, 2026