CVE-2025-5256 Open Redirect vulnerability on user unlock path

Medium 5.4 Published Updated

Attackers can redirect users to malicious sites via the user unlock endpoint, facilitating phishing attacks against Mautic users.

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-2025-5256?

CVE-2025-5256 is a medium-severity vulnerability in Mautic, published on 28 May 2025. 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

SummaryThis advisory addresses an Open Redirection vulnerability in Mautic's user unlocking endpoint. This vulnerability could be exploited by an attacker to redirect legitimate users to malicious websites, potentially leading to phishing attacks or the delivery of exploit kits.

Open Redirection via returnUrl Parameter: An Open Redirection vulnerability exists in the /s/action/unlock/user.user/0 endpoint. The returnUrl parameter, intended for post-action redirection, is not properly validated. This allows an attacker to craft a URL that, when clicked by a user, redirects them to an arbitrary external website controlled by the attacker.

MitigationUpdate Mautic to a version that properly validates or sanitizes the returnUrl parameter to ensure that redirects only occur to trusted, internal URLs or explicitly whitelisted domains.

Weakness: CWE-601

Which versions are affected by CVE-2025-5256?

6 open source packages ship an affected version, including mautic/core.

PackageAffectedFixed in
mautic/core PackagistFrom 1.0.04.4.16
mautic/core PackagistFrom 1.0.04.4.16
mautic/core PackagistFrom 5.0.0-alpha5.2.6
mautic/core PackagistFrom 5.0.0-alpha5.2.6
mautic/core PackagistFrom 6.0.0-alpha6.0.2
mautic/core PackagistFrom 6.0.0-alpha6.0.2

How do I fix CVE-2025-5256?

Upgrade mautic/core to a fixed version for your release line: 4.4.16, 5.2.6 or 6.0.2.

Is CVE-2025-5256 being exploited?

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

Sources

Also known as CVE-2025-48873, GHSA-6vx9-9r2g-8373.

Is CVE-2025-5256 in your software?

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

Check your SBOMs for free