{"id":"CVE-2021-47857","details":"Moodle 3.10.3 contains a persistent cross-site scripting vulnerability in the calendar event subtitle field that allows attackers to inject malicious scripts. Attackers can craft a calendar event with malicious JavaScript in the subtitle track label to execute arbitrary code when users view the event.","aliases":["BIT-moodle-2021-47857"],"modified":"2026-07-09T05:14:41.083276Z","published":"2026-01-21T18:16:16.567Z","references":[{"type":"WEB","url":"https://moodle.org/"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/moodle-label-persistent-cross-site-scripting"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/49714"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moodle/moodle","events":[{"introduced":"ef7fcf42612ffcc289f804cf0b83a76631f83f70"},{"last_affected":"ef7fcf42612ffcc289f804cf0b83a76631f83f70"}],"database_specific":{"cpe":"cpe:2.3:a:moodle:moodle:3.10.3:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.10.3"},{"last_affected":"3.10.3"}],"source":"CPE_STRING"}}],"versions":["3.10.3","v3.10.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47857.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}