N8n-io n8n
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
n8n is an open source workflow automation platform. Prior to 2.37.7 and 2.38.1, the OAuth token endpoint bound an authorization code's first access token to the consented resource but did not bind its refresh token. Refreshing checked only that the requested resource was registered, not that it matched the original grant. An OAuth client approved for one workflow could substitute a different workflow URL in the resource parameter and obtain a valid token for an unapproved workflow accessible to the consenting user. This issue is fixed in versions 2.37.7 and 2.38.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.37.7
- >= 2.38.0, < 2.38.1
Fixed in 2.37.7, 2.38.1
Mitigation
Upgrade n8n to 2.37.7 or 2.38.1 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
- Patch github.com/n8n-io/n8n/pull/37122
- Patch github.com/n8n-io/n8n/pull/37588
4 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.