High
Security advisory
A flaw was found in moodle before versions 3.5.1, 3.4.4, 3.3.7, 3.1.13. When a quiz question bank is imported, it was possible for the question preview that is displayed to execute JavaScript that is written into the question bank.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-10891
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:07 UTC · Revision 1
Source evidence
A flaw was found in moodle before versions 3.5.1, 3.4.4, 3.3.7, 3.1.13. When a quiz question bank is imported, it was possible for the question preview that is displayed to execute JavaScript that is written into the question bank.
osv:CVE-2018-10891
Complete source record
{
"id": "ed4a101ca6de03167966d738fcdce13251950ff623fbbb478725053e60c9006e",
"url": "https://osv.dev/vulnerability/CVE-2018-10891",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-10891",
"summary": "A flaw was found in moodle before versions 3.5.1, 3.4.4, 3.3.7, 3.1.13. When a quiz question bank is imported, it was possible for the question preview that is displayed to execute JavaScript that is written into the question bank.",
"evidence": "osv:CVE-2018-10891",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-10891",
"aliases": [
"CVE-2018-10891",
"GHSA-p7v9-gjrh-563x"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/moodle/moodle",
"type": "GIT",
"events": [
{
"introduced": "268abfacc54c4cbf9722c1502569b311c7caefff"
},
{
"fixed": "b19d180a869d69c66d3f6c72c35ddc9c8dafb935"
},
{
"introduced": "b87a580aa3eb23d5f05d7f619fc40a89e0f86fe5"
},
{
"fixed": "027b757f20c8e50d6fec2ef6f1ff2d85075690fc"
},
{
"introduced": "665c3ac59c35b7387a4fc70b8ac6600ce9ffeb87"
},
{
"fixed": "5ebb6eb15c250e175e2079bce5bb1c74eae29477"
},
{
"introduced": "46574904afd39578fa4146bf1fc5c401ac680aa6"
},
{
"fixed": "5b78584fdbda65ac516f39f9e66f9376a793de92"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1"
},
{
"fixed": "3.1.13"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3"
},
{
"fixed": "3.3.7"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.4"
},
{
"fixed": "3.4.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.5"
},
{
"fixed": "3.5.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.4.3",
"v3.5.0",
"v3.3.6",
"v3.1.12",
"v3.1.11",
"v3.4.2",
"v3.3.5",
"v3.4.1",
"v3.3.4",
"v3.1.10",
"v3.4.0",
"v3.1.9",
"v3.3.3",
"v3.1.8",
"v3.3.2",
"v3.3.1",
"v3.1.7",
"v3.1.6",
"v3.3.0",
"v3.1.5",
"v3.1.4",
"v3.1.3",
"v3.1.2",
"v3.1.1",
"v3.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10891.json"
}
}
],
"modified": "2026-10-24T10:31:03.094074814Z",
"provider": "osv",
"references": [
"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10891",
"https://moodle.org/mod/forum/discuss.php?d=373371"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-10891",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 440171,
"published_at": "2018-07-10T18:29:00.313+00:00"
}