{"id":"CVE-2026-102581","aliases":["CVE-2026-102581","BIT-MOODLE-2026-102581"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle: xss in forum post templates due to insufficient escaping","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-30T08:36:08.405Z","modified":"2026-10-05T14:30:06.376Z","severity":{"scorer":"fedora","scheme":"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,"rating":"MEDIUM"},"severities":[{"scorer":"fedora","scheme":"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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"5.2.0","fixed":"5.2.2","status":"affected"},{"type":"semver","introduced":"5.1.0","fixed":"5.1.6","status":"affected"},{"type":"semver","introduced":"5.0.0","fixed":"5.0.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.5.13","status":"affected"}],"package":"moodle","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.5.13"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.9"},{"status":"affected","introduced":"5.1.0","fixed":"5.1.6"},{"status":"affected","introduced":"5.2.0","fixed":"5.2.2"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.5.13"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.9"},{"type":"semver","introduced":"5.1.0","status":"affected","fixed":"5.1.6"},{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.2"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-88981","tags":["fix","patch"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-102581","tags":["advisory","third-party-advisory","vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2543634","tags":["advisory","issue-tracking","third-party-advisory","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=482499","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102581","tags":["web"],"sources":["bitnami"]}],"credits":["Upstream acknowledges Lars Bonczek as the original reporter."],"assigner":"fedora","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-30T14:34:52.043Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-102581","url":"https://www.cve.org/CVERecord?id=CVE-2026-102581","licence":"CVE Terms of Use","modified":"2026-09-30T14:35:11.793Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-102581","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102581","licence":"Public domain","modified":"2026-10-01T15:19:52.710Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2026-102581","url":"https://osv.dev/vulnerability/BIT-MOODLE-2026-102581","licence":"Apache-2.0","modified":"2026-10-05T14:30:06.376Z"}],"updatedAt":"2026-11-25T22:59:41.621Z","epss":{"score":0.00198,"percentile":0.10018,"date":"2026-12-01T12:00:22.000Z"}}