CVE-2026-25631: N8n N8n's Domain Allowlist Bypass Enables Vulnerability

MODERATE
Advisory Identifier: GHSA-2xcx-75h9-vr9h
CWE-522 CWE-20
Published
Advisory Summary

CVE-2026-25631 is a MODERATE n8n's domain allowlist bypass enables vulnerability (CWE-522: Insufficiently Protected Credentials) affecting N8n libraries in the npm ecosystem. The issue involves n8n's domain allowlist bypass enables credential exfiltration. Remediation is available by upgrading affected packages to version 1.121.0.

CVE-2026-25631 at a Glance

CVE Identifier CVE-2026-25631
GHSA Identifier GHSA-2xcx-75h9-vr9h
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product N8n
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-25631

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.121.0
npm install n8n@1.121.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-2026-25631, 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.121.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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. 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 A vulnerability in the HTTP Request node's credential domain validation allowed an authenticated attacker to send requests with credentials to unintended domains, potentially leading to credential exfiltration. This only might affect user who have credentials that use wildcard domain patterns (e.g., `*.example.com`) in the "Allowed domains" setting. ## Patches This issue is fixed in version 1.121.0 and later. All users are strongly encouraged to upgrade. ## Workarounds Until projects can upgrade: - Replace wildcard domain patterns with explicit domain listings in HTTP Request credentials - Review and restrict workflow creation/modification permissions to trusted users only - Audit existing workflows using HTTP Request nodes with domain-restricted credentials --- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backward compatibility. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

CVE-2026-25631 Affected N8n Versions

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

References

Frequently Asked Questions

What is CVE-2026-25631?
CVE-2026-25631 is a security vulnerability in N8n involving n8n's domain allowlist bypass enables credential exfiltration under CWE-522: Insufficiently Protected Credentials.
Which N8n versions are affected?
Affected versions include releases prior to 1.121.0 across affected packages: n8n.
What version fixes CVE-2026-25631?
Upgrading to 1.121.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.121.0. Upgrade your dependency to 1.121.0 or later.
What CWE is associated with CVE-2026-25631?
CVE-2026-25631 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check npm dependencies for CVE-2026-25631?
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-2xcx-75h9-vr9h",
  "modified" : "2026-02-06T21:43:45Z",
  "published" : "2026-02-04T20:33:27Z",
  "aliases" : [ "CVE-2026-25631" ],
  "summary" : "n8n's domain allowlist bypass enables credential exfiltration",
  "details" : "## Impact\n\nA vulnerability in the HTTP Request node's credential domain validation allowed an authenticated attacker to send requests with credentials to unintended domains, potentially leading to credential exfiltration.\n\nThis only might affect user who have credentials that use wildcard domain patterns (e.g., `*.example.com`) in the \"Allowed domains\" setting.\n\n## Patches\n\nThis issue is fixed in version 1.121.0 and later. All users are strongly encouraged to upgrade.\n\n## Workarounds\nUntil projects can upgrade:\n\n- Replace wildcard domain patterns with explicit domain listings in HTTP Request credentials\n- Review and restrict workflow creation/modification permissions to trusted users only\n- Audit existing workflows using HTTP Request nodes with domain-restricted credentials\n\n---\nn8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backward compatibility.\n\nCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "n8n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.121.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/n8n-io/n8n/security/advisories/GHSA-2xcx-75h9-vr9h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25631"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/n8n-io/n8n"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-522" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-04T20:33:27Z",
    "nvd_published_at" : "2026-02-06T21:16:18Z"
  }
}