{"id":"CVE-2026-102586","title":"A flaw was found in Moodle","summary":"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 craft…","severity":"medium","cvss":4.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","cwe":["CWE-79"],"vendor":"moodle","product":"moodle","affected":["moodle < 4.5.13","moodle >= 5.0.0, < 5.0.9","moodle >= 5.1.0, < 5.1.6","moodle >= 5.2.0, < 5.2.2"],"patched":["moodle 5.2.2"],"published":"2026-09-30","updated":"2026-10-01","sourceUpdated":"2026-10-01T15:48:31.997","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-102586","references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88335","label":"patrick@puiterwijk.org"},{"url":"https://access.redhat.com/security/cve/CVE-2026-102586","label":"patrick@puiterwijk.org"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2543641","label":"patrick@puiterwijk.org"},{"url":"https://moodle.org/mod/forum/discuss.php?d=482504","label":"patrick@puiterwijk.org"}],"tags":["nvd","cve.org"],"epss":0.00276,"epssPercentile":0.19958,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-30T13:56:33.265497Z"},"ingestedAt":"2026-09-30T09:00:29.908Z","slug":"CVE-2026-102586","body":"## Overview\n\nA 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.\n\n## Affected\n\n- `moodle < 4.5.13`\n- `moodle >= 5.0.0, < 5.0.9`\n- `moodle >= 5.1.0, < 5.1.6`\n- `moodle >= 5.2.0, < 5.2.2`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `moodle 5.2.2`","depth":"sunlit","depthScore":24,"depthScoreParts":{"impact":23.7,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}