n8n HTTP Request node leaks credentials to shared workflow editors

HighSE Fix-First Score 43/100CVE-2026-59209SE-AIV-01817Exposure of secrets or private dataAI softwareMade public 23 Jul 2026

Download as PDF

What this means

An editor with read-only access to a shared workflow can steal API credentials used by paginated HTTP requests. They could use these credentials to make unauthorized API calls, access data the credential can reach, or sell the secrets. This bypasses the normal restrictions on where credentials can be used.

SecurityElites Manager Brief: the decision in one minute

Users with limited access to shared workflows in n8n can steal API credentials if those workflows use paginated HTTP requests. You need to upgrade to block this theft and review who has access to your shared workflows.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team that runs n8n.
Likely effortAbout 15 to 30 minutes per n8n instance: download and deploy the fixed version, then restart. Reviewing workflow sharing permissions may take longer depending on how many shared workflows you have.

Questions to ask your team or supplier

  • Which of our n8n workflows use HTTP Request nodes with pagination, and which ones are shared with non-owner users? Do we have an inventory?
  • Have we checked whether N8N_EXPRESSION_ENGINE is set to vm across all our n8n deployments, and do we know why it was set that way?
  • If we find that credentials were exposed before upgrading, how do we verify whether they were actually stolen, and what is our plan to rotate them and monitor for misuse?

Message you can forward to the owning team

Security notice: n8n HTTP Request node leaks credentials to shared workflow editors (CVE-2026-59209)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.28.1 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-59209-n8n-http-request-node-leaks-credentials-to-shared-workflow/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01817

What is at stake in your AI setup

  • API credentials and secrets stored in HTTP Header Auth credentials used by agents or workflows.
  • API provider access keys and tokens that an agent may use to call external tools or services.
  • Data returned by paginated API calls, which could include training data or retrieval content if agents fetch from external sources.
  • Secrets and keys that a workflow uses to integrate with other AI services or data sources.

Map where your company uses AI

Who is exposed

  • n8n instances with N8N_EXPRESSION_ENGINE=vm set (check your config now).
  • Workflows that use HTTP Request nodes with pagination enabled.
  • Shared workflows where non-owner users have editor access.
  • API credentials applied to those paginated HTTP Request nodes.

Upgrades you need

SoftwareAffected versionsMove to
n8n
npm
Every version before 1.123.61; 2.28.0 up to, but not including, 2.28.1; 2.0.0-rc.0 up to, but not including, 2.27.42.28.1 or later

Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.61, 2.27.4, 2.28.1.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedNone
Risk of: the service being taken downNone
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsPartial control, according to CISA

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Kind of coding mistake

  • CWE-200: information is exposed to the wrong party

Where it sits in the standards

OWASP Top 10 for LLM Applications 2025: LLM02 Sensitive Information Disclosure

If you cannot upgrade today

  • Until you upgrade, restrict all shared workflow access to owners only or to fully trusted team members who do not have hostile intent.
  • Remove pagination from HTTP Request nodes in shared workflows if possible, or move those workflows so they are not shared.
  • Ensure N8N_EXPRESSION_ENGINE is not set to vm, or verify your deployment does not use vm as the engine.

Signs it may already have been used against you

  • Review audit logs or workflow execution logs for any HTTP Request nodes where the output or variables include authorization headers or secrets that should not be there.
  • Look for workflows with pagination enabled on HTTP Request nodes that are marked as shared with other users.
  • Check if credentials used in shared workflows have been used outside of n8n by reviewing API provider access logs for unexpected requests or geographic anomalies.
  • Search execution history for cases where data passed between HTTP Request nodes contains header values or secrets from credentials.

SecurityElites Fix Guide: step by step

  1. Check if you are affectedLook for n8n instances running version 1.0.0 to 1.123.60, or 2.0.0-rc.0 to 2.28.0 (any version between those ranges). Also check whether N8N_EXPRESSION_ENGINE is set to vm in your environment variables or config file. If you run an older version and have this setting, you are affected.
  2. List your shared workflowsIn the n8n UI, find all workflows that are shared with other users and have editor access granted. Note which of these use HTTP Request nodes with pagination turned on. These are your highest-risk workflows.
  3. Review credential use in those workflowsFor each shared workflow with pagination, check which credentials are attached to the HTTP Request nodes. If any use HTTP Header Auth credentials, those are the ones that can be stolen. Make a list of which credentials are exposed this way.
  4. Upgrade n8n to the fixed versionFor n8n version 1.x, upgrade to 1.123.61 or later. For n8n version 2.0.0-rc.0 through 2.27.x, upgrade to 2.27.4 or later. For n8n version 2.28.0, upgrade to 2.28.1 or later. Follow your normal deployment process to apply the new version.
  5. Restart n8nAfter upgrading, restart the n8n service or application. Wait for it to come back online and confirm that workflows load and execute normally.
  6. Verify the fixCheck that your n8n instance is now running one of the fixed versions listed above. You can see the version in the UI (usually in settings or about section) or in the logs at startup.
  7. Review and restrict workflow sharingReduce the number of users who have editor access to workflows with paginated HTTP requests and credentials. If a workflow must be shared, limit access to fully trusted team members only. Remove access for users who do not need it.
  8. Rotate exposed credentialsAny HTTP Header Auth credentials that were on shared workflows with pagination before you upgraded should be considered compromised. Generate new credentials in the external API, update them in n8n, and delete the old ones. Check the API provider's logs to see if the old credentials were used outside n8n.

How to confirm it is fixed: Confirm that your n8n instance is running version 1.123.61, 2.27.4, 2.28.1, or any later version in those release branches.

SecurityElites Quick Fixes: copy and paste

Upgrade n8n with npmupgrade

npm install n8n@2.28.1
npm ls n8n

Check n8n version and expression engine settingfor this issue

# Check the version from logs or UI; look for version number at startup
# Check if N8N_EXPRESSION_ENGINE is set to vm
echo $N8N_EXPRESSION_ENGINE
# or in Docker:
docker exec <container_name> printenv N8N_EXPRESSION_ENGINE
# or in a .env file, look for the line:
# N8N_EXPRESSION_ENGINE=vm

Read a key from the environment instead of the code (Python)general hardening

import os
api_key = os.environ["SERVICE_API_KEY"]

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-59209) 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.28.1 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.

What type of credential is at risk of being stolen in this vulnerability?A good answer: HTTP Header Auth credentials used in paginated HTTP Request nodes on workflows shared with editor access to non-owner users.
What must be true for a workflow to put credentials at risk?A good answer: The workflow must use HTTP Request nodes with pagination enabled, have a credential applied, be shared with another user, and the instance must have N8N_EXPRESSION_ENGINE set to vm.
What are the three fixed versions you can upgrade to?A good answer: n8n 1.123.61 or later for version 1.x, 2.27.4 or later for version 2.0.0-rc.0 through 2.27.x, and 2.28.1 or later for version 2.28.0.
What should we do to the credentials that were on shared workflows before we upgrade?A good answer: Generate new credentials in the external API provider, update them in n8n, and invalidate the old ones, then check the provider's logs to see if they were misused.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## n8n HTTP Request node leaks credentials to shared workflow editors (CVE-2026-59209)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01817 https://securityelites.com/ai-vulnerabilities/cve-2026-59209-n8n-http-request-node-leaks-credentials-to-shared-workflow/

### Why this matters
An editor with read-only access to a shared workflow can steal API credentials used by paginated HTTP requests. They could use these credentials to make unauthorized API calls, access data the credential can reach, or sell the secrets. This bypasses the normal restrictions on where credentials can be used.

### What to do
1. Check if you are affected
2. List your shared workflows
3. Review credential use in those workflows
4. Upgrade n8n to the fixed version
5. Restart n8n
6. Verify the fix
7. Review and restrict workflow sharing
8. Rotate exposed credentials

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-59209-n8n-http-request-node-leaks-credentials-to-shared-workflow/

### Done when
- [ ] n8n is at 2.28.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that your n8n instance is running version 1.123.61, 2.27.4, 2.28.1, or any later version in those release branches.
- [ ] 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.

Sign in to track this fix

Change history

  • 22 Jul 2026: Made public
  • 2 Dec 2026: Published

Official record

## Impact An authenticated member with use-only editor access to a shared workflow could read credential-populated headers exposed via the `$request` object inside an HTTP Request node's pagination expression. When an HTTP Header Auth credential is applied to a paginated request, the secret is present in `$request.headers` when pagination expressions are evaluated. A user-controlled expression could read that secret, copy it into item data, and exfiltrate it through a later HTTP Request node, bypassing credential domain restrictions, since the secret leaves via item data rather than the credential's own request mechanism.This issue only affects instances with `N8N_EXPRESSION_ENGINE=vm` set, where paginated HTTP Request workflows using shared credentials are accessible to non-owner users.## Patches The issue has been fixed in n8n versions 1.123.61, 2.27.4, and 2.28.1. 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 workflow sharing to fully trusted users only. - Avoid sharing credentials with use-only access to untrusted users on workflows that use HTTP Request nodes with pagination enabled.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Weakness type: CWE-200

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-59209

For 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.