n8n OAuth registration accepts unlimited field sizes, filling the database
What this means
An attacker with no account can repeatedly register fake OAuth clients with extremely large field values. This fills up the database storage without limit, potentially causing the service to slow down, run out of disk space, or stop working entirely. The attacker needs no credentials and can do this from anywhere.
SecurityElites Manager Brief: the decision in one minute
An unauthenticated attacker can fill your n8n database by registering fake OAuth clients with huge field values. This can exhaust storage and take the service down. You must upgrade to stop this attack.
| SecurityElites Fix-First Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or infrastructure team responsible for n8n deployments. |
| Likely effort | About 15 minutes per n8n instance: download the fixed version, deploy it, and restart. Downtime is typically under 5 minutes. If you have multiple instances or a complex deployment, it may take longer. |
Questions to ask your team or supplier
- Do you have automated monitoring for database storage growth? If not, what alert should we set up?
- Is your n8n instance exposed to the internet, or is it only accessible from trusted internal networks?
- How often do you back up the n8n database, and can you recover it quickly if needed?
Message you can forward to the owning team
Security notice: n8n OAuth registration accepts unlimited field sizes, filling the database (CVE-2026-86075)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.38.2 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-86075-n8n-oauth-registration-accepts-unlimited-field-sizes-filling-the/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01781What is at stake in your AI setup
- OAuth client credentials and tokens stored in the database could be exposed if an attacker gains full database access through resource exhaustion.
- Legitimate integrations connected through OAuth clients may be starved of resources if database performance degrades from bloat.
Who is exposed
- n8n instances running version 2.37.6 or earlier
- n8n instances running version 2.38.0 or 2.38.1
- Any n8n instance exposed to untrusted networks or the public internet
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| n8n npm | 2.38.0 up to, but not including, 2.38.2; Every version before 2.37.7 | 2.38.2 or later |
Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 2.37.7, 2.38.2.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | None |
| Risk of: data or settings being changed | None |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Partial control, according to CISA |
Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Kind of coding mistake
- CWE-770: resources are allocated without limits
If you cannot upgrade today
- Restrict network access to the n8n instance: only allow requests from trusted clients or internal networks.
- Place n8n behind a reverse proxy (such as nginx or HAProxy) and set a strict request body size limit well below 16 MiB to block oversized registration requests.
- Manually query and delete malicious entries from the `oauth_clients` table, then monitor the table size daily for signs of further attack.
Signs it may already have been used against you
- Database storage usage growing unexpectedly fast, especially if the instance does not have many legitimate OAuth clients.
- Entries in the `oauth_clients` table with unusually long `client_name` values or many entries in the `grant_types` array.
- New OAuth client entries in the database that were never created through the normal web UI or API.
- Logs showing repeated POST requests to the OAuth Dynamic Client Registration endpoints from the same or different IP addresses.
Log searches to start from
Repeated OAuth registration requests (adapt field names to your logs)Elastic
source:n8n AND method:POST AND path:*oauth*registration* | stats count by src_ip, path | where count > 100OAuth registration requests with large payloads (adapt field names to your logs)Splunk
source=n8n method=POST *oauth*registration* | where request_bytes > 1000000 | stats count by src_ipWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find all n8n instances in your environmentSearch your infrastructure for every n8n deployment, including development, staging, and production. Record the hostname, version, and how it is deployed (container, VM, cloud service, etc.).
- Check the current version of each instanceLog into the n8n web interface and look for the version number in the bottom left corner or the settings menu. Alternatively, check the package.json or npm list in the application directory.
- Back up the databaseCreate a full backup of the n8n database before upgrading. This protects you if something goes wrong and lets you inspect malicious entries later.
- Upgrade to the fixed versionFor instances on 2.37.x, upgrade to 2.37.7 or later. For instances on 2.38.x, upgrade to 2.38.2 or later. Follow your normal deployment process (pull the new image, run npm update, or use your package manager).
- Restart the serviceStop and start the n8n process or container to load the new version. Confirm that the service is running and responding to requests.
- Verify the fix is in placeLog into the web interface and confirm the version number is now 2.37.7, 2.38.2, or later. Check that the instance is fully operational.
- Inspect the OAuth clients table for suspicious entriesQuery the database table `oauth_clients` and look for entries with extremely long `client_name` or `grant_types` values, or entries created by unknown parties. Delete or disable any that look malicious. Document what you find in case of further investigation.
- Monitor database storage going forwardSet up an alert if database size grows unexpectedly. Review the `oauth_clients` table regularly for new or unusual entries, especially if the instance is internet-facing.
How to confirm it is fixed: Confirm that the n8n version is 2.37.7, 2.38.2, or later in the web interface or via `npm list n8n`, and that the OAuth Dynamic Client Registration endpoints now reject oversized requests.
SecurityElites Quick Fixes: copy and paste
Upgrade n8n with npmupgrade
npm install n8n@2.38.2
npm ls n8nCheck n8n version via npmfor this issue
npm list n8nQuery suspicious OAuth client entries (PostgreSQL example)for this issue
SELECT id, client_name, grant_types, created_at FROM oauth_clients WHERE LENGTH(client_name) > 255 OR array_length(grant_types, 1) > 10 ORDER BY created_at DESC;Require sign-in with nginx in front of the servicegeneral hardening
location / {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:8080;
}Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-86075) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - n8n (npm): must be 2.38.2 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## n8n OAuth registration accepts unlimited field sizes, filling the database (CVE-2026-86075)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01781 https://securityelites.com/ai-vulnerabilities/cve-2026-86075-n8n-oauth-registration-accepts-unlimited-field-sizes-filling-the/
### Why this matters
An attacker with no account can repeatedly register fake OAuth clients with extremely large field values. This fills up the database storage without limit, potentially causing the service to slow down, run out of disk space, or stop working entirely. The attacker needs no credentials and can do this from anywhere.
### What to do
1. Find all n8n instances in your environment
2. Check the current version of each instance
3. Back up the database
4. Upgrade to the fixed version
5. Restart the service
6. Verify the fix is in place
7. Inspect the OAuth clients table for suspicious entries
8. Monitor database storage going forward
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-86075-n8n-oauth-registration-accepts-unlimited-field-sizes-filling-the/
### Done when
- [ ] n8n is at 2.38.2 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that the n8n version is 2.37.7, 2.38.2, or later in the web interface or via `npm list n8n`, and that the OAuth Dynamic Client Registration endpoints now reject oversized requests.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- n8n legacy expression engine allows code execution via JSON.stringify override High · CVE-2026-86083
- n8n OpenAI node bypasses domain restrictions on model search High · CVE-2026-86082
- n8n Git node can freeze the instance with a crafted path High · CVE-2026-86081
- n8n expression compiler can run arbitrary code through class field names High · CVE-2026-86076
- n8n Edit Fields node can crash the whole instance with a bad field name High · CVE-2026-72749
- n8n Edit Image node can write files outside its working directory High · CVE-2026-72762
The same kind of mistake in other AI tools
- BaaRai ARTEX admin account can be claimed without authentication on first run Critical · CVE-2026-140422
- BaaRai ARTEX admin login can be guessed without limits or lockouts Critical · CVE-2026-140365
- NLTK dependency parser crashes on long sentences High · CVE-2026-129222
- NLTK regex compilation denial of service via many groups High · CVE-2026-129229
- Model Context Protocol SDK tasks can be read by other clients sharing the store High · CVE-2026-111767
Change history
- 10 Sep 2026: Made public
- 2 Dec 2026: Published
Official record
## ImpactThe OAuth Dynamic Client Registration endpoints validated 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 have them persisted to the database. Repeated registration therefore grew persistent storage without limit and without any account on the instance. The patch caps `client_name` at its column length and limits `grant_types` to the grant types the server actually implements, with the array capped at that count.## PatchesThe issue has been fixed in n8n versions 2.37.7 and 2.38.2. Users should upgrade to one of these versions or later to remediate the vulnerability.## WorkaroundsIf upgrading is not immediately possible, administrators should consider the following temporary mitigations: - Restrict network access to the n8n instance so that only trusted clients can reach it. - Place the instance behind a reverse proxy configured to enforce strict request body size limits below the default 16 MiB. - Monitor database size for unexpected growth and audit the `oauth_clients` table for anomalous entries.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Weakness type: CWE-770
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-86075For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.