{"id":"CVE-2026-102586","revision":"dfbb3de6a74f4616898ca9b759dfb8dc","records":[{"revision":"dfbb3de6a74f4616898ca9b759dfb8dc","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-102586","aliases":[],"title":"Moodle: xss via password reset link due to insufficient username escaping","description":"A flaw was found in Moodle. Insufficient sanitization of username input on the password reset page allows a remote attacker to conduct a cross-site scripting (XSS) attack. By convincing an unauthenticated user to access a specially crafted password reset link, an attacker could execute arbitrary script in the victim's browser.","state":0,"publishedAt":"2026-09-30T08:36:19.341+00:00","modifiedAt":"2026-09-30T15:28:08.409+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:N/UI:R/S:U/C:L/I:N/A:N","score":4.3,"severity":"MEDIUM"}],"references":["http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335","https://access.redhat.com/security/cve/CVE-2026-102586","https://bugzilla.redhat.com/show_bug.cgi?id=2543641","https://moodle.org/mod/forum/discuss.php?d=482504"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-102586","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-102586","identifiers":["CVE-2026-102586"]},"retained":false,"historicalAffected":[]}],"coverage":[]}