Medium
Security advisory
A vulnerability was found in Moodle 3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7 where it was possible to include JavaScript in a book's chapter title, which was not escaped on the "Add new chapter" page. This is fixed in 3.9.2, 3.8.5 and 3.7.8.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-25631
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:39 UTC · Revision 1
Source evidence
A vulnerability was found in Moodle 3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7 where it was possible to include JavaScript in a book's chapter title, which was not escaped on the "Add new chapter" page. This is fixed in 3.9.2, 3.8.5 and 3.7.8.
osv:CVE-2020-25631
Complete source record
{
"id": "17deb9efbd24deb8e8107b501edae24fbf35e3cb71cfe76c8f77d74432b6c8f7",
"url": "https://osv.dev/vulnerability/CVE-2020-25631",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-25631",
"summary": "A vulnerability was found in Moodle 3.9 to 3.9.1, 3.8 to 3.8.4 and 3.7 to 3.7.7 where it was possible to include JavaScript in a book's chapter title, which was not escaped on the \"Add new chapter\" page. This is fixed in 3.9.2, 3.8.5 and 3.7.8.",
"evidence": "osv:CVE-2020-25631",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-25631",
"aliases": [
"BIT-moodle-2020-25631",
"CVE-2020-25631",
"GHSA-4w4j-9533-82qg"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/moodle/moodle",
"type": "GIT",
"events": [
{
"introduced": "89457b26d192c06325bb6782b85d1025dafbefe9"
},
{
"fixed": "f6e37fe19539b61afd3beb8685ffbff028e4ddf5"
},
{
"introduced": "f968cd44e8ee5d54b1bc56823040ff770dbf18af"
},
{
"fixed": "b21d86f807d355a3773a9b084d2ddb80c5e6b7ec"
},
{
"introduced": "500c131eb49771e36f68d151dfa37fef5a9bc2df"
},
{
"fixed": "ccd4ef8ddd03d98b84e3231866b8b1e024dab1db"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.7.0"
},
{
"fixed": "3.7.8"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.8.0"
},
{
"fixed": "3.8.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.9.0"
},
{
"fixed": "3.9.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.7.7",
"v3.8.4",
"v3.9.1",
"v3.9.0",
"v3.8.3",
"v3.7.6",
"v3.7.5",
"v3.8.2",
"v3.8.1",
"v3.7.4",
"v3.8.0",
"v3.7.3",
"v3.7.2",
"v3.7.0",
"v3.7.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-25631.json"
}
}
],
"modified": "2026-10-24T10:30:56.329747002Z",
"provider": "osv",
"references": [
"https://moodle.org/mod/forum/discuss.php?d=410843"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-25631",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 438647,
"published_at": "2020-12-08T01:15:12.007+00:00"
}