CVE-2025-49592: N8n N8n Allows Open Redirects Vulnerability
MODERATECVE-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
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).
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.
npm install n8n@1.98.0
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
CVE-2025-49592 Affected N8n Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
n8n
|
npm |
< 1.98.0
|
1.98.0
|
References
Frequently Asked Questions
What is CVE-2025-49592?
Which N8n versions are affected?
What version fixes CVE-2025-49592?
Is n8n affected?
What is the CVSS score of CVE-2025-49592?
What CWE is associated with CVE-2025-49592?
How can I check npm dependencies for CVE-2025-49592?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}