{"id":"CVE-2026-102581","aliases":["BIT-moodle-2026-102581","EUVD-2026-89720","GHSA-g6pg-29qv-3h3r","UBUNTU-CVE-2026-102581"],"status":"published","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.","severity":{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00198,"percentile":0.09668,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-09-30T08:36:08Z","modified":"2026-10-28T02:30:54Z","fixes":[{"ecosystem":"Bitnami","package":"moodle","fixed_in":["4.5.13","5.0.9","5.1.6","5.2.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"moodle","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.5.13"},{"introduced":"5.0.0"},{"fixed":"5.0.9"},{"introduced":"5.1.0"},{"fixed":"5.1.6"},{"introduced":"5.2.0"},{"fixed":"5.2.2"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.9+dfsg-1","2.7.10+dfsg-1","2.7.11+dfsg-1","2.7.11+dfsg-2","2.7.12+dfsg-1","3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]}],"products":[{"vendor":"moodle","product":"moodle"}],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-88981","tags":["Patch","fix","web","report"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-102581","tags":["vdb-entry","x_refsource_REDHAT","Third Party Advisory","advisory","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2543634","tags":["issue-tracking","x_refsource_REDHAT","Issue Tracking","Third Party Advisory","advisory","report"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=482499","tags":["Vendor Advisory","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102581","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-g6pg-29qv-3h3r"},{"url":"https://git.moodle.org","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102581.json","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-102581","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-102581","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-102581","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.","status":"published","published":"2026-09-30T08:36:08.405Z","modified":"2026-09-30T14:35:11.793Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T13:38:43.260938Z"}],"euvd":[{"id":"EUVD-2026-89720","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.","status":"published","published":"2026-09-30T08:36:08Z","modified":"2026-09-30T14:35:11Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T17:27:49.499669Z"}],"ghsa":[{"id":"GHSA-g6pg-29qv-3h3r","title":"A flaw was found in Moodle. Insufficient output escaping in templates used to display forum posts...","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.","status":"published","published":"2026-09-30T09:31:12Z","modified":"2026-09-30T09:31:12Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:12:35.884172Z"}],"nvd":[{"id":"CVE-2026-102581","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.","status":"published","published":"2026-09-30T09:17:15.213Z","modified":"2026-10-01T15:19:52.71Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:12:52.759595Z"}],"osv":[{"id":"CVE-2026-102581","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.","status":"published","published":"2026-09-30T08:36:08.405Z","modified":"2026-10-28T02:30:54.634009683Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:53.83521Z"},{"id":"UBUNTU-CVE-2026-102581","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.","status":"published","published":"2026-09-30T09:17:00Z","modified":"2026-10-02T22:30:12.053090161Z","cvss":[{"version":"3.1","score":4.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"medium"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:55:58.519486Z"},{"id":"BIT-moodle-2026-102581","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.","status":"published","published":"2026-10-05T11:55:25.98Z","modified":"2026-10-05T14:30:06.376274089Z","updated_at":"2026-11-02T15:28:33.469426Z"}]}}
