CVE-2018-10891 Moodle XSS Vulnerability

Medium 6.3 Published Updated

Attackers can execute arbitrary JavaScript via malicious quiz question imports, potentially leading to session hijacking or account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-10891?

CVE-2018-10891 is a medium-severity cross-site scripting vulnerability in Moodle Moodle, published on 10 Jul 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2018-10891?

10 open source packages ship an affected version, including moodle/moodle. It affects 1 product.

PackageAffectedFixed in
moodle/moodle PackagistFrom 3.1.03.1.13
moodle/moodle PackagistFrom 3.1.03.1.13
moodle/moodle PackagistFrom 3.2.03.2.10
moodle/moodle PackagistFrom 3.2.03.2.10
moodle/moodle PackagistFrom 3.3.03.3.7
moodle/moodle PackagistFrom 3.3.03.3.7
4 more packages
moodle/moodle PackagistFrom 3.4.03.4.4
moodle/moodle PackagistFrom 3.4.03.4.4
moodle/moodle PackagistFrom 3.5.03.5.1
moodle/moodle PackagistFrom 3.5.03.5.1

Products include Moodle Moodle.

How do I fix CVE-2018-10891?

Upgrade moodle/moodle to a fixed version for your release line: 3.1.13, 3.2.10, 3.3.7 or 3.4.4.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2018-10891 being exploited?

There is no known exploitation of CVE-2018-10891 in the wild and no public exploit code.

All Moodle Moodle vulnerabilities

Sources

Also known as GHSA-p7v9-gjrh-563x, UBUNTU-CVE-2018-10891.

Is CVE-2018-10891 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free