# CVE-2018-10891: Moodle XSS Vulnerability

- Severity: Medium 6.3 (CVSS:3.0, scored by redhat) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.99%, higher than 81% of CVEs (2026-12-01)
- Published: 2018-07-10T18:00:00.000Z
- Modified: 2026-06-17T01:34:51.257Z
- Also known as: GHSA-p7v9-gjrh-563x
- Weaknesses: CWE-20
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- [UNKNOWN] moodle: moodle 3.5.1; moodle 3.4.4; moodle 3.3.7; moodle 3.1.13
- moodle/moodle (Packagist): from 3.5.0 before 3.5.1; from 3.4.0 before 3.4.4; from 3.3.0 before 3.3.7; from 3.2.0 before 3.2.10; from 3.1.0 before 3.1.13
- moodle moodle: from 3.1 before 3.1.13; from 3.3 before 3.3.7; from 3.4 before 3.4.4; from 3.5 before 3.5.1

## Every score

- redhat: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://moodle.org/mod/forum/discuss.php?d=373371> (patch, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10891> (issue-tracking, third-party-advisory, web)
- <http://www.securityfocus.com/bid/104739> (third-party-advisory, vdb-entry)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-10891> (advisory)
- <https://github.com/moodle/moodle/commit/0b18d0c960c27994dd9870d286f2da3fa5868c06> (web)
- <https://github.com/moodle/moodle> (package)
- <https://web.archive.org/web/20210124185945/https://www.securityfocus.com/bid/104739> (web)

## Sources

- CVE List: [CVE-2018-10891](https://www.cve.org/CVERecord?id=CVE-2018-10891), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-p7v9-gjrh-563x](https://github.com/advisories/GHSA-p7v9-gjrh-563x), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2018-10891](https://nvd.nist.gov/vuln/detail/CVE-2018-10891), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-10891 · Whole record: https://cve.day/CVE-2018-10891.json · Rebuilt by cve.day 2026-11-25T22:57:38.767Z
