CVE-2020-25628 Cross site-scripting (XSS) moodle

Medium 6.1 Published Updated

Reflected XSS in Moodle's tag manager filter allows attackers to execute scripts, potentially leading to session hijacking or account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-25628?

CVE-2020-25628 is a medium-severity cross-site scripting vulnerability in Moodle Moodle, published on 8 Dec 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The filter in the tag manager required extra sanitizing to prevent a reflected XSS risk. This affects 3.9 to 3.9.1, 3.8 to 3.8.4, 3.7 to 3.7.7, 3.5 to 3.5.13 and earlier unsupported versions. Fixed in 3.9.2, 3.8.5, 3.7.8 and 3.5.14.

Weakness: CWE-79

Which versions are affected by CVE-2020-25628?

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

PackageAffectedFixed in
moodle/moodle PackagistFrom 3.53.5.14
moodle/moodle PackagistFrom 3.53.5.14
moodle/moodle PackagistFrom 3.7.03.7.8
moodle/moodle PackagistFrom 3.7.03.7.8
moodle/moodle PackagistFrom 3.8.03.8.5
moodle/moodle PackagistFrom 3.8.03.8.5
3 more packages
moodle/moodle PackagistFrom 3.9.03.9.2
moodle/moodle PackagistFrom 3.9.03.9.2
moodle BitnamiFrom 3.5.03.5.14, 3.7.8, 3.8.5, 3.9.2

Products include Moodle Moodle.

How do I fix CVE-2020-25628?

Upgrade moodle/moodle to a fixed version for your release line: 3.5.14, 3.7.8, 3.8.5 or 3.9.2.

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-2020-25628 being exploited?

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

All Moodle Moodle vulnerabilities

Sources

Also known as BIT-moodle-2020-25628, GHSA-5x33-h32w-6vr2, UBUNTU-CVE-2020-25628.

Is CVE-2020-25628 in your software?

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

Check your SBOMs for free