CVE-2025-49592: n8n allows open redirects via the /signin endpoint
n8n up to 1.97.0 has an open redirect in its /signin login flow. A crafted link can send a user to an attacker's site right after they log in, which helps phishing. Version 1.98.0 only allows same-origin or relative redirects.
Published Jun 27, 2025 · Analysis Nov 10, 2026
What an attacker can do
The login flow trusts a redirect query parameter on the /signin endpoint. A victim who clicks a crafted link and logs in is sent to an attacker-controlled domain afterwards (CWE-601).
The attacker needs to craft the URL and get the victim to click it, so user interaction is required. Anyone hosting n8n with /signin exposed is affected. Because the link starts on your real n8n domain, it looks trustworthy. The advisory names phishing with lookalike domains, credential or 2FA theft if users re-enter sensitive data, and reputational harm.
It does not give direct access to the instance. The advisory rates it moderate (CVSS 3.1 of 4.6).
Who is affected
The npm package n8n, versions up to and including 1.97.0, on any instance that exposes /signin. Check:
npm ls -g n8nFor Docker, check the image tag.
n8n
- Ecosystem
- npm
- Affected
- <= 1.97.0
- Fixed in
- 1.98.0
- Check
npm ls n8n
How to fix it
Upgrade to 1.98.0, which applies strict origin validation so only same-origin or relative paths are allowed after login (commit 4865d1e). The advisory lists no workaround. Until you upgrade, warn users to treat /signin links with a redirect parameter as suspicious.
How to tell if you were hit
Search web server and proxy logs for requests to /signin whose redirect query parameter holds a full URL on another domain. A burst of such requests, or ones with Referer values from outside your organization, points to phishing use.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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. 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
Credited to tatianahub.
Questions
- Is n8n 1.98.0 affected by CVE-2025-49592?
No. 1.98.0 is the fixed version. Versions up to 1.97.0 are affected.
- Does it need user interaction?
Yes. The victim must click a crafted /signin link and log in. The attacker needs no special access beyond crafting the URL.
- What is the real risk?
Phishing. After login the user lands on an attacker's lookalike site, which can ask them to re-enter credentials or 2FA codes.
- Is there a workaround?
The advisory lists none. Upgrade to 1.98.0 or later.
References
Read for this analysis:
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More n8n vulnerabilities
All n8n entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
