CVE-2025-5256: Mautic/core Mautic Has An Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-6vx9-9r2g-8373
CVSS 5.4
CWE-601
Published
Advisory Summary

CVE-2025-5256 is a MODERATE (CVSS 5.4) mautic has an open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Mautic/core libraries in the Packagist ecosystem. The issue involves mautic has an open redirect vulnerability on user unlock path.. Remediation is available by upgrading affected packages to version 4.4.16, 5.2.6, 6.0.2.

CVE-2025-5256 at a Glance

CVE Identifier CVE-2025-5256
GHSA Identifier GHSA-6vx9-9r2g-8373
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Mautic/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-5256

To remediate this vulnerability, upgrade all affected Mautic/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mautic/core fixed: 4.4.16
Upgrade mautic/core to 4.4.16
mautic/core fixed: 5.2.6
Upgrade mautic/core to 5.2.6
mautic/core fixed: 6.0.2
Upgrade mautic/core to 6.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mautic/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-5256, inspect your project dependencies for Mautic/core:

inspect dependencies for mautic/core

Analyze the terminal output to locate any version of Mautic/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.16), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Mautic/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary This 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. ### Mitigation Update 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.

CVE-2025-5256 Affected Mautic/core Versions

3 component(s)
Fixed Versions:
4.4.165.2.66.0.2
Product / Package Ecosystem Affected Versions Fixed Version
mautic/core
Packagist
≥ 1.0.0
< 4.4.16
4.4.16
mautic/core
Packagist
≥ 5.0.0-alpha
< 5.2.6
5.2.6
mautic/core
Packagist
≥ 6.0.0-alpha
< 6.0.2
6.0.2

References

Frequently Asked Questions

What is CVE-2025-5256?
CVE-2025-5256 is a security vulnerability in Mautic/core involving Mautic has an Open Redirect vulnerability on user unlock path. under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Mautic/core versions are affected?
Affected versions include releases prior to 4.4.16, 5.2.6, 6.0.2 across affected packages: mautic/core.
What version fixes CVE-2025-5256?
Upgrading to 4.4.16, 5.2.6, 6.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mautic/core affected?
Yes, mautic/core is affected in releases prior to 4.4.16, 5.2.6, 6.0.2. Upgrade your dependency to 4.4.16, 5.2.6, 6.0.2 or later.
What is the CVSS score of CVE-2025-5256?
CVE-2025-5256 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-5256?
CVE-2025-5256 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Packagist dependencies for CVE-2025-5256?
Run the dependency tree command: 'inspect dependencies for mautic/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6vx9-9r2g-8373",
  "modified" : "2025-05-28T20:04:40Z",
  "published" : "2025-05-28T17:39:45Z",
  "aliases" : [ "CVE-2025-5256" ],
  "summary" : "Mautic has an Open Redirect vulnerability on user unlock path.",
  "details" : "### Summary\nThis 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.\n\nOpen 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.\n\n### Mitigation\nUpdate 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "4.4.16"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0-alpha"
      }, {
        "fixed" : "5.2.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0-alpha"
      }, {
        "fixed" : "6.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/security/advisories/GHSA-6vx9-9r2g-8373"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-5256"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mautic/mautic"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-28T17:39:45Z",
    "nvd_published_at" : "2025-05-28T18:15:34Z"
  }
}