AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-86993: n8n: Log Streaming Event Destinations Decrypt Generic-Auth Credentials Without Ownership Check

mediumCVSS 4.0 5.9GHSA-pq6c-vh67-xpm3

In n8n, Log Streaming event destinations decrypt a generic HTTP credential without checking that the caller may use it. A user with a custom global role that has Log Streaming scopes can name another project's credential and send the decrypted secret to a server they control. Fixed in n8n 1.123.76, 2.37.7 and 2.38.2.

Published Sep 10, 2026 · Analysis Nov 7, 2026

What an attacker can do

A Log Streaming event destination can reference a generic HTTP credential. The destination resolved and decrypted whichever credential it named. It never asked whether the caller owned or could access that credential.

The attacker needs a custom global role with scopes such as eventBusDestination:create and eventBusDestination:test, and must know or guess the ID of a credential in another project. The CVSS v4 vector rates privileges as high. The attack runs over the network with no user interaction.

With that, the attacker creates a destination that points at a webhook URL they control, attaches the victim credential, and triggers a test. The n8n server sends the decrypted secret there. That can be an API key or a basic-auth password for a third-party service. Integrity and availability are not affected, but the stolen secret can be used against whatever system it protects.

Who is affected

The npm package n8n below 1.123.76, from 2.0.0 up to but not including 2.37.7, and from 2.38.0 up to but not including 2.38.2. Check your version.

npm ls n8n

You are only exposed if some user holds a custom global role with Log Streaming scopes.

n8n

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

n8n

Ecosystem
npm
Affected
>= 2.38.0, < 2.38.2
Fixed in
2.38.2
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0, < 2.37.7
Fixed in
2.37.7
Check
npm ls n8n

How to fix it

Upgrade to n8n 1.123.76, 2.37.7 or 2.38.2, matching your release line. The fix runs the standard credential access check when a destination resolves its credential.

Short-term measures from the advisory, which do not fully remove the risk: restrict instance access to fully trusted users, audit and revoke custom global roles that carry Log Streaming scopes, and review existing destinations for unexpected webhook URLs. Remove unrecognized destinations and rotate any credentials they may have referenced.

How to tell if you were hit

Open the Log Streaming settings and list every destination. Look for webhook URLs you do not recognize and for destinations bound to a credential that belongs to a different project than the destination's creator. Check who holds roles with eventBusDestination:create or eventBusDestination:test. If you find a suspicious destination, treat the credential it referenced as exposed and rotate it.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

A log streaming event destination may reference a generic HTTP credential, and the destination resolved and decrypted whichever credential it named without checking that the caller had access to it. A user holding a custom global role scoped to Log Streaming operations could therefore name a credential belonging to another project and have its decrypted secret sent to an endpoint they controlled. The patch applies the standard credential access check when a destination resolves its credential.

Patches

The issue has been fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. 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 n8n instance access to fully trusted users only.
  • Audit and revoke any custom global roles that carry Log Streaming scopes (eventBusDestination:create, eventBusDestination:test, etc.), limiting those scopes to fully trusted users only.
  • Review existing Log Streaming event destinations for unexpected webhook URLs and remove any that are not recognized, then rotate any credentials that may have been referenced.

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

Credited to nlgbao1340.

Questions

What do I need to be vulnerable to CVE-2026-86993?

An n8n version below 1.123.76, 2.37.7 or 2.38.2 (per release line), and a user with a custom global role that has Log Streaming scopes.

What does the attacker steal?

The decrypted generic HTTP credential of another project, delivered to an endpoint the attacker controls.

Is there a workaround?

Only partial ones: trust-limited access, revoking Log Streaming scopes from custom roles, and reviewing destinations. The advisory says upgrading is the real fix.

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