NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-25631: n8n's domain allowlist bypass enables credential exfiltration

mediumCVSS 4.0 5.3GHSA-2xcx-75h9-vr9h

n8n versions below 1.121.0 have a flaw in the HTTP Request node's credential domain validation. An authenticated user can send a request that carries a stored credential to a domain outside the allowed list, which can leak that credential. It matters only for credentials that use wildcard patterns such as *.example.com in Allowed domains. Fixed in 1.121.0.

Published Feb 4, 2026 · Updated Feb 19, 2026 · Analysis Nov 1, 2026

What an attacker can do

An n8n HTTP Request credential can limit where it may be used through the Allowed domains setting. The check on that setting could be bypassed, so a request could go to a domain the credential owner never intended while still attaching the credential. The advisory does not describe the exact bypass, and it says only credentials with wildcard domain patterns might be affected.

The attacker needs an n8n account that can build or edit workflows and use the credential in an HTTP Request node. They point the node at a server they control. The Authorization header, API key or token arrives there, and the attacker reads it. They never need to see the credential in the UI.

On a shared instance, this undermines the idea of giving teammates use of a credential without letting them see or move it. The exposure is a leak of one credential at a time, which matches the high confidentiality, no integrity impact vector.

Who is affected

n8n below 1.121.0, where HTTP Request credentials use wildcard domain patterns such as *.example.com in the Allowed domains setting. Credentials with explicit domain lists are listed as the safer pattern in the advisory's workarounds. Check the version:

npm ls n8n

Then open each HTTP Request credential in n8n and read its Allowed domains field for wildcards.

n8n

Ecosystem
npm
Affected
< 1.121.0
Fixed in
1.121.0
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.121.0 or later.

Until you can upgrade, per the advisory:

  • Replace wildcard domain patterns with explicit domain listings in HTTP Request credentials.
  • Limit workflow creation and modification to trusted users.
  • Audit workflows that use HTTP Request nodes with domain-restricted credentials.

If an untrusted user could have used a wildcard-restricted credential, rotate that credential after upgrading.

How to tell if you were hit

Audit workflows that use HTTP Request nodes with domain-restricted credentials, and look at the URL each node calls. Flag URLs whose host is not one you recognize, or that only resemble the allowed pattern. Check n8n execution history for calls to unexpected hosts, and outbound proxy or firewall logs for requests from the n8n server to domains outside your expected set. The advisory gives no log signature.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to weblover12.

Questions

Does CVE-2026-25631 affect credentials without wildcards?

The advisory says it only might affect users with credentials that use wildcard domain patterns such as *.example.com in the Allowed domains setting.

Does the attacker need an n8n account?

Yes. The advisory describes an authenticated attacker, and the CVSS vector requires low privileges.

What is the quickest mitigation?

Replace wildcard patterns with explicit domain lists, then upgrade to 1.121.0 or later.

References

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 entries