Skip to content
HighVulnerability

GHSA-hh89-3r9w-qj3j: n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint

Published
Record updated
View JSON
Affected
  • n8n < 2.37.7, fixed in 2.37.7, released September 2, 2026, 8 days before disclosure
  • n8n >= 2.38.0, < 2.38.2, fixed in 2.38.2, released September 2, 2026, 8 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

The n8n OAuth Dynamic Client Registration endpoints checked field sizes only for `redirect_uris`, leaving `client_name` and `grant_types` bounded by presence checks alone. An unauthenticated remote caller could submit arbitrarily large values in either field, and they were persisted to the database, so repeated registrations grew persistent storage without limit.

Mitigation

Fixed in n8n versions 2.37.7 and 2.38.2; upgrade to one of these or later. The patch caps `client_name` at its column length and limits `grant_types` to the grant types the server implements. Temporary workarounds: restrict network access to trusted clients, place the instance behind a reverse proxy enforcing request body size limits below the default 16 MiB, and monitor database growth and audit the `oauth_clients` table. The source states these workarounds do not fully remediate the risk.