CVE-2020-35125 Mautic is vulnerable to XSS vulnerability

Critical 9.6 Published Updated

Remote attackers can inject executable JavaScript into Mautic forms via the return parameter, potentially compromising user sessions.

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-35125?

CVE-2020-35125 is a critical cross-site scripting vulnerability in n/a, published on 9 Feb 2021. 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

A cross-site scripting (XSS) vulnerability in the forms component of Mautic before 3.2.4 allows remote attackers to inject executable JavaScript via mautic[return] (a different attack method than CVE-2020-35124, but also related to the Referer concept).

Weakness: CWE-79

Which versions are affected by CVE-2020-35125?

4 open source packages ship an affected version, including mautic/core. It affects 1 product.

PackageAffectedFixed in
mautic/core PackagistAll versions2.16.5
mautic/core PackagistAll versions2.16.5
mautic/core PackagistFrom 3.0.03.2.4
mautic/core PackagistFrom 3.0.03.2.4

Products include Acquia Mautic.

How do I fix CVE-2020-35125?

Upgrade mautic/core to a fixed version for your release line: 2.16.5 or 3.2.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-2020-35125 being exploited?

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

Sources

Also known as GHSA-42q7-95j7-w62m.

Is CVE-2020-35125 in your software?

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

Check your SBOMs for free