{"id":"CVE-2026-102581","revision":"94adef72e3d14d689dc9da8a7a08d358","records":[{"revision":"94adef72e3d14d689dc9da8a7a08d358","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-102581","aliases":[],"title":"Moodle: xss in forum post templates due to insufficient escaping","description":"A flaw was found in Moodle. Insufficient output escaping in templates used to display forum posts enables a stored cross-site scripting (XSS) vulnerability. An attacker can inject malicious content into a forum post, which then executes arbitrary script code in the browser of another user viewing the affected post.","state":0,"publishedAt":"2026-09-30T08:36:08.405+00:00","modifiedAt":"2026-09-30T14:35:11.793+00:00","affected":[{"ecosystem":"https://git.moodle.org","name":"moodle","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"5.2.0\",\n                            \"lessThan\": \"5.2.2\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"5.1.0\",\n                            \"lessThan\": \"5.1.6\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"5.0.0\",\n                            \"lessThan\": \"5.0.9\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"4.5.13\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageName\": \"moodle\",\n                    \"collectionURL\": \"https://git.moodle.org\",\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"severity":"MEDIUM"}],"references":["http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88981","https://access.redhat.com/security/cve/CVE-2026-102581","https://bugzilla.redhat.com/show_bug.cgi?id=2543634","https://moodle.org/mod/forum/discuss.php?d=482499"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-102581","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-102581","identifiers":["CVE-2026-102581"]},"retained":false,"historicalAffected":[]}],"coverage":[]}