# CVE-2026-86073: n8n OAuth consent bypass via unbound refresh token

Source: https://junglewise.ai/threats/cve-2026-86073-n8n-oauth-consent-bypass-via-unbound-refresh-token  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-08. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-86073 · Severity: high · CVSS 7.6 · Published 2026-09-08

n8n is a workflow automation platform used by organizations to build and execute business processes. The platform's OAuth security mechanism failed to properly restrict refresh tokens to their originally-approved workflow resources. An attacker could trick a user into approving an OAuth app for one workflow, then reuse that approval to gain unauthorized access to other workflows the user can execute, effectively bypassing access controls and gaining unauthorized automation capabilities.

Technologies: [N8n](https://junglewise.ai/threats/technologies/n8n), [n8n (npm)](https://junglewise.ai/threats/technologies/npm-n8n). Vendors: [N8n](https://junglewise.ai/threats/vendors/n8n), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-86073 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-86073 being exploited in the wild.

**How severe is CVE-2026-86073?** High severity, with a CVSS score of 7.6, published 8 September 2026.

**Which products and versions are affected?** N8n >=2.38.0,<2.38.1 and <2.37.7; n8n (npm) SEMVER:introduced=2.38.0,fixed=2.38.1.

**Is there a fix for CVE-2026-86073?** Yes. n8n (npm): upgrade to 2.38.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-86073 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-86073?** Check whether you run N8n or n8n (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- n8n (npm): upgrade to 2.38.1 or later

  ```sh
  npm install n8n@2.38.1
  ```


## Technical details

The vulnerability is a CWE-863 (Incorrect Authorization) flaw in n8n's OAuth token endpoint. While the initial access token was correctly bound to the consented resource, refresh tokens were not. When a client refreshed a token, the endpoint only verified that the requested resource was registered in the system, not that it matched the resource for which the original grant was issued. An attacker must register an OAuth client, socially engineer an authenticated n8n user to approve it for one known protected resource (MCP Trigger, form, or webhook workflow), and know the URL of a second protected resource the victim can access. The refresh token can then be used with the second resource URL to obtain a valid access token for an unapproved workflow. Patches bind refresh tokens to the granted resource and reject mismatches. Fixed in n8n 2.38.1 and 2.37.7.

## Affected products

- n8n n8n >=2.38.0,<2.38.1 and <2.37.7

## Identifiers

- CVE-2026-86073
- GHSA-cw9w-vv67-hf73

## Timeline

- 2026-09-10: disclosed
- 2026-09-03: patched: Patches released in n8n 2.38.1 and 2.37.7

## References

- [https://api.github.com/users/bariskececi](https://api.github.com/users/bariskececi)
- [https://github.com/bariskececi](https://github.com/bariskececi)
- [https://api.github.com/users/bariskececi/gists%7B/gist_id%7D](https://api.github.com/users/bariskececi/gists%7B/gist_id%7D)
- [https://api.github.com/users/bariskececi/repos](https://api.github.com/users/bariskececi/repos)
- [https://avatars.githubusercontent.com/u/82381988?v=4](https://avatars.githubusercontent.com/u/82381988?v=4)
- [https://api.github.com/users/bariskececi/events%7B/privacy%7D](https://api.github.com/users/bariskececi/events%7B/privacy%7D)

## Related threats

- [n8n path traversal in Databricks node](https://junglewise.ai/threats/cve-2026-119557-n8n-from-2-14-0-through-2-46-3-contains-a-path-traversal)
- [n8n remote code execution in deprecated Function nodes](https://junglewise.ai/threats/cve-2026-119408-n8n-before-2-42-6-2-43-x-before-2-43-3-and-3-x-before-3-0-1)
- [n8n Slack Trigger SSRF and token exfiltration](https://junglewise.ai/threats/cve-2026-118679-n8n-before-1-123-83-2-41-4-and-2-42-1-contains-a-server-side)
- [n8n prototype pollution in workflow history compaction](https://junglewise.ai/threats/cve-2026-118678-n8n-before-2-41-4-and-2-42-x-before-2-42-1-contains-a-prototype)
- [n8n Local Gateway deep-link missing confirmation re-pairing](https://junglewise.ai/threats/cve-2026-118677-n8n-before-2-41-4-and-2-42-x-before-2-42-1-contains-a-missing)
