CVE-2019-18210 Moodle Persistent Cross-site Scripting (XSS)

Medium 5.4 Published Updated

Authenticated teachers can inject persistent JavaScript into other users' sessions via the course editor, though the vendor disputes this as a vulnerability.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2019-18210?

CVE-2019-18210 is a medium-severity cross-site scripting vulnerability in Moodle Moodle, published on 11 Feb 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Persistent XSS in /course/modedit.php of Moodle through 3.7.2 allows authenticated users (Teacher and above) to inject JavaScript into the session of another user (e.g., enrolled student or site administrator) via the introeditor[text] parameter. NOTE: the discoverer and vendor disagree on whether Moodle customers have a reasonable expectation that anyone authenticated as a Teacher can be trusted with the ability to add arbitrary JavaScript (this ability is not documented on Moodle's Teacher_role page). Because the vendor has this expectation, they have stated "this report has been closed as a false positive, and not a bug."

Weakness: CWE-79

Which versions are affected by CVE-2019-18210?

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

PackageAffectedFixed in
moodle/moodle PackagistFrom 3.7 to 3.7.2None
moodle/moodle PackagistFrom 3.7 to 3.7.2None

Products include Moodle Moodle.

How do I fix CVE-2019-18210?

No fix has been published for CVE-2019-18210 yet. Limit exposure of the affected software until one is available.

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-2019-18210 being exploited?

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

All Moodle Moodle vulnerabilities

Sources

Also known as GHSA-q6vw-27c6-jv9c, UBUNTU-CVE-2019-18210.

Is CVE-2019-18210 in your software?

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

Check your SBOMs for free