CVE-2022-25774 XSS in Notifications via saving Dashboards

Medium 4.8 Published Updated

Logged-in users can inject malicious code into notifications via dashboard saving, enabling self-XSS attacks in Mautic.

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

What is CVE-2022-25774?

CVE-2022-25774 is a medium-severity cross-site scripting vulnerability in Mautic, published on 18 Sep 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Prior to the patched version, logged in users of Mautic are vulnerable to a self XSS vulnerability in the notifications within Mautic.

Users could inject malicious code into the notification when saving Dashboards.

Weakness: CWE-79

Which versions are affected by CVE-2022-25774?

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

PackageAffectedFixed in
mautic/core PackagistAll versions4.4.12
mautic/core PackagistAll versions4.4.12

Products include Acquia Mautic.

How do I fix CVE-2022-25774?

Upgrade mautic/core to 4.4.12 or later.

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-2022-25774 being exploited?

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

Sources

Also known as GHSA-fhcx-f7jg-jx3f.

Is CVE-2022-25774 in your software?

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

Check your SBOMs for free