{"id":"CVE-2022-40313","published":"2022-09-30T16:34:00Z","modified":"2025-05-20T18:20:46Z","title":"Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or…","vendor":null,"product":null,"tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00716,"percentile":0.5466,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2128146","tags":["x_refsource_MISC"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=438392","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.93},{"name":"CVSS severity","points":4.97}]},"affectedVersions":[{"vendor":"n/a","product":"moodle","versions":["4.0 to 4.0.3, 3.11 to 3.11.9, 3.9 to 3.9.16 and earlier unsupported versions"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-20T18:19:11.960977Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"moodle/moodle","vulnerableRanges":[">=3.9, <3.9.17",">=3.11, <3.11.10",">=4.0, <4.0.4"],"patched":["3.9.17","3.11.10","4.0.4"],"from":["GHSA-jqgr-gh62-jf53"],"provenance":"source"}],"summary":{"text":"An attacker who can get crafted input into a template helper that is rendered recursively can, in some cases, inject script into the page for cross-site scripting or cause the page to fail to load, and this requires that a user interact with the crafted content (such as visiting a link or viewing a page) and no authentication or special network position.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:02Z"},"euvd":{"id":"EUVD-2022-7119","exploited":false,"provenance":"source"}}