CVE-2025-49592: N8n N8n Allows Open Redirects Vulnerability

MODERATE
Advisory Identifier: GHSA-5vj6-wjr7-5v9f
CVSS 4.6
CWE-601
Published
Advisory Summary

CVE-2025-49592 is a MODERATE (CVSS 4.6) n8n allows open redirects vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting N8n libraries in the npm ecosystem. The issue involves n8n allows open redirects via the /signin endpoint. Remediation is available by upgrading affected packages to version 1.98.0.

CVE-2025-49592 at a Glance

CVE Identifier CVE-2025-49592
GHSA Identifier GHSA-5vj6-wjr7-5v9f
Severity MODERATE
CVSS v3.1 Base Score 4.6
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product N8n
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.6

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-49592

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

n8n fixed: 1.98.0
npm install n8n@1.98.0
Verify Direct and Transitive Dependencies

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

npm ls n8n

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-49592, inspect your project dependencies using npm:

npm ls n8n

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

Note: The npm ls n8n command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

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 N8n, 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

### Impact This is an Open Redirect (CWE-601) vulnerability in the login flow of n8n. Authenticated users can be redirected to untrusted, attacker-controlled domains after logging in, by crafting malicious URLs with a misleading redirect query parameter. This may lead to: - Phishing attacks by impersonating the n8n UI on lookalike domains (e.g., n8n.local.evil.com) - Credential or 2FA theft if users are tricked into re-entering sensitive information - Reputation risk due to the visual similarity between attacker-controlled domains and trusted ones The vulnerability affects anyone hosting n8n and exposing the `/signin` endpoint to users. ### Patches The issue has been patched in [1.98.0](https://github.com/n8n-io/n8n/releases/tag/n8n%401.98.0). All users should upgrade to this version or later. The fix introduces strict origin validation for redirect URLs, ensuring only same-origin or relative paths are allowed after login. Patch commit: https://github.com/n8n-io/n8n/pull/16034

CVE-2025-49592 Affected N8n Versions

1 component(s)
Fixed Versions:
1.98.0
Product / Package Ecosystem Affected Versions Fixed Version
n8n
npm
< 1.98.0
1.98.0

References

Frequently Asked Questions

What is CVE-2025-49592?
CVE-2025-49592 is a security vulnerability in N8n involving n8n allows open redirects via the /signin endpoint under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which N8n versions are affected?
Affected versions include releases prior to 1.98.0 across affected packages: n8n.
What version fixes CVE-2025-49592?
Upgrading to 1.98.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is n8n affected?
Yes, n8n is affected in releases prior to 1.98.0. Upgrade your dependency to 1.98.0 or later.
What is the CVSS score of CVE-2025-49592?
CVE-2025-49592 has a CVSS v3.1 base score of 4.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-49592?
CVE-2025-49592 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 npm dependencies for CVE-2025-49592?
Run the dependency tree command: 'npm ls n8n'. 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-5vj6-wjr7-5v9f",
  "modified" : "2025-06-27T14:19:02Z",
  "published" : "2025-06-27T14:19:01Z",
  "aliases" : [ "CVE-2025-49592" ],
  "summary" : "n8n allows open redirects via the /signin endpoint",
  "details" : "### Impact\n\nThis is an Open Redirect (CWE-601) vulnerability in the login flow of n8n. Authenticated users can be redirected to untrusted, attacker-controlled domains after logging in, by crafting malicious URLs with a misleading redirect query parameter.\n\nThis may lead to:\n\n- Phishing attacks by impersonating the n8n UI on lookalike domains (e.g., n8n.local.evil.com)\n- Credential or 2FA theft if users are tricked into re-entering sensitive information\n- Reputation risk due to the visual similarity between attacker-controlled domains and trusted ones\n\nThe vulnerability affects anyone hosting n8n and exposing the `/signin` endpoint to users.\n\n### Patches\n\nThe issue has been patched in [1.98.0](https://github.com/n8n-io/n8n/releases/tag/n8n%401.98.0).\nAll users should upgrade to this version or later.\n\nThe fix introduces strict origin validation for redirect URLs, ensuring only same-origin or relative paths are allowed after login.\n\nPatch commit: https://github.com/n8n-io/n8n/pull/16034",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "n8n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.98.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.97.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/security/advisories/GHSA-5vj6-wjr7-5v9f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49592"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/pull/16034"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/commit/4865d1e360a0fe7b045e295b5e1a29daad12314e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/n8n-io/n8n"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/releases/tag/n8n%401.98.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-27T14:19:01Z",
    "nvd_published_at" : "2025-06-26T20:15:29Z"
  }
}