Medium
Security advisory
In certain Moodle products after creating a course, it is possible to add in a arbitrary "Topic" a resource, in this case a "Database" with the type "Text" where its values "Field name" and "Field description" are vulnerable to Cross Site Scripting Stored(XSS). This affects Moodle 3.11 and Moodle 3.10.4 and Moodle 3.9.7.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-36568
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:08 UTC · Revision 1
Source evidence
In certain Moodle products after creating a course, it is possible to add in a arbitrary "Topic" a resource, in this case a "Database" with the type "Text" where its values "Field name" and "Field description" are vulnerable to Cross Site Scripting Stored(XSS). This affects Moodle 3.11 and Moodle 3.10.4 and Moodle 3.9.7.
osv:CVE-2021-36568
Complete source record
{
"id": "2853b9388ed959eb6b3c86b185ecbc7512afaf11d717d0aedb738814100266b3",
"url": "https://osv.dev/vulnerability/CVE-2021-36568",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-36568",
"summary": "In certain Moodle products after creating a course, it is possible to add in a arbitrary \"Topic\" a resource, in this case a \"Database\" with the type \"Text\" where its values \"Field name\" and \"Field description\" are vulnerable to Cross Site Scripting Stored(XSS). This affects Moodle 3.11 and Moodle 3.10.4 and Moodle 3.9.7.",
"evidence": "osv:CVE-2021-36568",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-36568",
"aliases": [
"BIT-moodle-2021-36568",
"CVE-2021-36568",
"GHSA-fm6m-fg23-67jq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/moodle/moodle",
"type": "GIT",
"events": [
{
"introduced": "270f52bf55acaf121cbae6643a8fa6545d545c3f"
},
{
"last_affected": "94f2d3fc4b974c5c7d500988c56b7ca15f58d7ec"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:moodle:moodle:3.9.7:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.9.7"
},
{
"last_affected": "3.9.7"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:moodle:moodle:3.10.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.10.4"
},
{
"last_affected": "3.10.4"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:moodle:moodle:3.11.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.11.0"
},
{
"last_affected": "3.11.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.10.4",
"3.11.0",
"3.9.7"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36568.json"
}
}
],
"modified": "2026-10-24T10:31:03.505951216Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERQ3NHVOK4ZXT4MS4LBQ2ZJHTON3LIMW/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PRI4ETMQ4DJR3TZUOOGPBQ32RBD5LNGC/",
"https://drive.google.com/drive/folders/1_fO4BKpmD3avGYHSzvIXWs5owqVYgB1s?usp=sharing",
"https://blog.hackingforce.com.br/en/cve-2021-36568/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "35"
},
{
"last_affected": "35"
},
{
"introduced": "36"
},
{
"last_affected": "36"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-36568",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 440270,
"published_at": "2022-09-13T22:15:08.793+00:00"
}