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

GHSA-64xh-79j6-r5v8: n8n: Bypass "Allowed HTTP Request Domains" Credential Restriction in Multiple AI and LLM Nodes

highCVSS 4.0 7.1

Several n8n AI and LLM nodes ignored a credential's "Allowed HTTP Request Domains" allowlist when a custom base or endpoint URL was set. A workflow editor with use-only access to a shared credential could send its secret to a host they control. Only credentials with the allowlist set and shared with non-owners are affected. Fixed in n8n 2.31.5 and 2.32.1.

Published Jul 22, 2026 · Analysis Oct 25, 2026

What an attacker can do

The "Allowed HTTP Request Domains" setting on a credential limits which hosts the credential's secret may be sent to. Admins use it to share a credential, such as an LLM API key, with colleagues who can use it in workflows but not view it. Several AI and LLM nodes skipped that check when the user supplied a base URL or endpoint URL (CWE-863, incorrect authorization). The advisory does not name the nodes.

A low-privileged user who can edit workflows and has use-only access to the shared credential can set the node's endpoint to a server they run. The node then sends the API key to that server. The attacker can read it there and reuse it directly against the real service, outside n8n and its audit trail.

No user interaction is needed. The attack needs an account, and the allowlist must be configured and the credential shared. Instances that never share credentials, or that do not use the allowlist, are not affected. The impact is loss of the shared secret, which can mean spend on the LLM account or access to whatever data it reaches.

Who is affected

Affected: n8n below 2.31.5, and 2.32.0. The advisory lists no separate 1.x fix, so 1.x versions are not marked as patched in this entry.

Check the version:

npm ls n8n

Then list credentials that have "Allowed HTTP Request Domains" set and are shared with users other than their owner. Those are the exposed ones.

n8n

Ecosystem
npm
Affected
>= 2.32.0, < 2.32.1
Fixed in
2.32.1
Check
npm ls n8n

n8n

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

How to fix it

Upgrade to n8n 2.31.5 or 2.32.1, or later. For an npm install, run npm install [email protected].

Temporary mitigations from the advisory, none of which fully remove the risk:

  • Limit workflow creation and editing to fully trusted users.
  • Limit credential sharing to fully trusted users.
  • Audit domain-restricted credentials for unexpected sharing.

If you suspect a shared key was sent out, rotate it at the provider after upgrading.

How to tell if you were hit

Review workflows that use AI or LLM nodes with a custom base URL or endpoint set, especially ones built by users who only have use access to the credential. Look for endpoints that are not the provider's own host or your approved gateway. Check provider-side usage logs for the shared key being used from unfamiliar IP addresses or at unusual volume, since a stolen key is replayed outside n8n. Review the credential sharing list for unexpected users.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

The credential "Allowed HTTP Request Domains" allowlist was intended to restrict which hosts a credential's secret could be sent to, protecting shared credentials from users who could use but not view them. Several AI/LLM nodes did not enforce this allowlist when a user-supplied base or endpoint URL was set. A low-privileged workflow editor with use-only access to such a shared credential could point one of these nodes at an attacker-controlled host and cause the credential secret to be transmitted there, then reuse it against the underlying service.

Only instances where a credential has "Allowed HTTP Request Domains" configured and is shared with non-owner users are affected.

Patches

The issue has been fixed in n8n versions 2.31.5 and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict workflow creation and editing permissions to fully trusted users only.
  • Restrict credential sharing to fully trusted users only.
  • Audit credentials with domain restrictions for unexpected sharing relationships.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to nlgbao1340.

Questions

Who is affected by GHSA-64xh-79j6-r5v8?

Instances where a credential has "Allowed HTTP Request Domains" configured and is shared with non-owner users. Without both conditions, the bypass gives an attacker nothing.

What does the attacker need?

A low-privileged account that can edit workflows and has use-only access to the shared credential. No user interaction is required.

Which versions fix it?

n8n 2.31.5 and 2.32.1 or later. Versions below 2.31.5, and 2.32.0, are affected.

Should I rotate the credential?

If untrusted users had use access to a domain-restricted credential on an unpatched version, rotating it is a reasonable precaution. The advisory does not say so explicitly, but the flaw exposes the secret itself.

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