CVE-2025-49592: n8n: open redirect enables phishing via login flow

MEDIUM
Published June 26, 2025
CISO Take

n8n's /signin endpoint allows attackers to craft URLs that redirect authenticated users to attacker-controlled lookalike domains, enabling credential and 2FA theft. Since n8n workflows typically store LLM API keys, database credentials, and integration tokens, a compromised n8n account exposes the entire AI automation stack. Upgrade to v1.98.0 immediately; no workaround is available without code changes.

What is the risk?

CVSS 5.4 understates operational risk for n8n deployments. n8n instances are AI workflow hubs with privileged access to LLMs, vector databases, and internal APIs — credential theft via this phishing vector grants attacker control over the entire automation layer. Exploitation requires only low privileges and a social engineering step (sending a malicious link), making it accessible to moderately skilled attackers targeting organizations using n8n for AI agent orchestration.

What systems are affected?

Package Ecosystem Vulnerable Range Patched
n8n npm No patch
193.4K OpenSSF 6.6 Pushed 3d ago 55% patched ~7d to patch Full package profile →

Do you use n8n? You're affected.

How severe is it?

CVSS 3.1
5.4 / 10
EPSS
0.2%
chance of exploitation in 30 days
Higher than 9% of all CVEs
Exploitation Status
No known exploitation
Sophistication
Trivial

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC Low
PR Low
UI Required
S Changed
C Low
I Low
A None

What should I do?

6 steps
  1. Upgrade to n8n v1.98.0 or later — the fix enforces strict same-origin validation for redirect URLs.

  2. If patching is delayed, restrict /signin access to trusted IP ranges via reverse proxy.

  3. Audit authentication logs for login events followed by immediate logouts or anomalous session patterns.

  4. Rotate all n8n-stored credentials (API keys, DB passwords) if phishing is suspected.

  5. Enable SSO/SAML to reduce reliance on native n8n authentication.

  6. Educate users: legitimate n8n will never redirect to an external domain post-login.

What does CISA's SSVC say?

Decision Track
Exploitation none
Automatable No
Technical Impact partial

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 9 - Risk management system
ISO 42001
A.9.2 - AI system access control
NIST AI RMF
MANAGE 2.2 - Mechanisms to sustain and improve AI system security
OWASP LLM Top 10
LLM07 - Insecure Plugin Design

Frequently Asked Questions

What is CVE-2025-49592?

n8n's /signin endpoint allows attackers to craft URLs that redirect authenticated users to attacker-controlled lookalike domains, enabling credential and 2FA theft. Since n8n workflows typically store LLM API keys, database credentials, and integration tokens, a compromised n8n account exposes the entire AI automation stack. Upgrade to v1.98.0 immediately; no workaround is available without code changes.

Is CVE-2025-49592 actively exploited?

No confirmed active exploitation of CVE-2025-49592 has been reported, but organizations should still patch proactively.

How to fix CVE-2025-49592?

1. Upgrade to n8n v1.98.0 or later — the fix enforces strict same-origin validation for redirect URLs. 2. If patching is delayed, restrict /signin access to trusted IP ranges via reverse proxy. 3. Audit authentication logs for login events followed by immediate logouts or anomalous session patterns. 4. Rotate all n8n-stored credentials (API keys, DB passwords) if phishing is suspected. 5. Enable SSO/SAML to reduce reliance on native n8n authentication. 6. Educate users: legitimate n8n will never redirect to an external domain post-login.

What systems are affected by CVE-2025-49592?

This vulnerability affects the following AI/ML architecture patterns: agent frameworks, workflow automation, AI pipeline orchestration, LLM integration layers.

What is the CVSS score for CVE-2025-49592?

CVE-2025-49592 has a CVSS v3.1 base score of 5.4 (MEDIUM). The EPSS exploitation probability is 0.19%.

What is the AI security impact?

Affected AI Architectures

agent frameworksworkflow automationAI pipeline orchestrationLLM integration layers

MITRE ATLAS Techniques

AML.T0008.002 Domains
AML.T0011.003 Malicious Link
AML.T0012 Valid Accounts
AML.T0049 Exploit Public-Facing Application
AML.T0052 Phishing

Compliance Controls Affected

EU AI Act: Article 9
ISO 42001: A.9.2
NIST AI RMF: MANAGE 2.2
OWASP LLM Top 10: LLM07

What are the technical details?

Original Advisory

n8n is a workflow automation platform. Versions prior to 1.98.0 have an Open Redirect vulnerability in the login flow. 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, and/or 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. The issue has been patched in version 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.

Exploitation Scenario

Attacker registers a lookalike domain (e.g., n8n.corp-internal.evil.com) and crafts a URL: https://legit-n8n.company.com/signin?redirect=https://n8n.corp-internal.evil.com. This is delivered to an n8n administrator via phishing email or Slack ('your session expired, re-authenticate'). The admin authenticates on the real n8n instance, is silently redirected to the lookalike site, and re-enters credentials. Attacker now controls the n8n instance with full access to all AI workflow automation including LLM API keys, agent configurations, and connected business systems.

Weaknesses (CWE)

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.

  • [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
  • [Architecture and Design] Use an intermediate disclaimer page that provides the user with a clear warning that they are leaving the current site. Implement a long timeout before the redirect occurs, or force the user to click on the link. Be careful to avoid XSS problems (CWE-79) when generating the disclaimer page.

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Timeline

Published
June 26, 2025
Last Modified
September 2, 2025
First Seen
June 26, 2025

Related Vulnerabilities