GHSA-5vj6-wjr7-5v9f

Suggest an improvement
Source
https://github.com/advisories/GHSA-5vj6-wjr7-5v9f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-5vj6-wjr7-5v9f/GHSA-5vj6-wjr7-5v9f.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5vj6-wjr7-5v9f
Aliases
Published
2025-06-27T14:19:01Z
Modified
2025-06-27T14:19:02Z
Severity
  • 4.6 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
n8n allows open redirects via the /signin endpoint
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-601"
    ],
    "nvd_published_at": "2025-06-26T20:15:29Z",
    "github_reviewed_at": "2025-06-27T14:19:01Z",
    "github_reviewed": true,
    "severity": "MODERATE"
}
References

Affected packages

npm / n8n

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.98.0

Database specific

{
    "last_known_affected_version_range": "<= 1.97.0"
}