n8n: secrets vault bypass exposes credentials to low-priv users
Any authenticated n8n user can retrieve plaintext secrets from connected vaults (HashiCorp Vault, AWS Secrets Manager, etc.) by referencing secret names in a credential — bypassing the explicit list-secrets permission. In AI-heavy deployments, this typically means LLM API keys (OpenAI, Anthropic, Azure OpenAI), vector DB credentials, and service tokens are at risk. Patch to 1.123.23+ or 2.6.4+ immediately; if that's not possible, disable external secrets integration and restrict n8n access to admin/owner roles only.
Affected Systems
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| n8n | npm | < 1.123.23 | 1.123.23 |
Do you use n8n? You're affected.
Severity & Risk
Recommended Action
- 1. PATCH: Upgrade to n8n 1.123.23 or 2.6.4 as soon as possible — no functional workaround fully closes the exposure. 2. ROTATE: Assume any secrets accessible via external vault integration may be compromised; rotate LLM API keys, DB credentials, and service tokens proactively. 3. AUDIT: Review n8n credential logs and vault access logs for unexpected retrievals by non-admin users. 4. IF UNPATCHED: Disable external secrets integration in n8n settings, or restrict instance access to admin/owner roles only — note this does not fully remediate per vendor advisory. 5. DETECT: Alert on credential save events by non-privileged n8n users; monitor for anomalous API usage patterns on connected LLM/AI service accounts.
Classification
Compliance Impact
This CVE is relevant to:
Technical Details
NVD Description
n8n is an open source workflow automation platform. Prior to versions 2.6.4 and 1.123.23, an authenticated user without permission to list external secrets could reference a secret by the external name in a credential and retrieve its plaintext value when saving the credential. This bypassed the `externalSecret:list` permission check and allowed access to secrets stored in connected vaults without admin or owner privileges. This issue requires the instance to have an external secrets vault configured. The attacker must know or be able to guess the name of a target secret. The issue has been fixed in n8n versions 1.123.23 and 2.6.4. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading is not immediately possible, administrators should consider the following temporary mitigations: Restrict n8n access to fully trusted users only, and/or disable external secrets integration until the patch can be applied. These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Exploitation Scenario
An attacker with a low-privilege n8n account — a contractor, intern, or compromised developer credential — navigates to credential creation. They craft a credential that references an external secret by its likely name (e.g., 'OPENAI_API_KEY', 'PINECONE_API_KEY', 'ANTHROPIC_API_KEY'). Upon saving, n8n resolves the secret name against the connected vault and returns the plaintext value in the API response — bypassing the externalSecret:list permission check entirely. The attacker retrieves the plaintext credentials from the response, then uses them independently: burning through LLM API quotas, querying vector databases for sensitive indexed documents, or selling credentials. Since the operation mirrors a normal workflow configuration action, it generates minimal suspicious log noise.
Weaknesses (CWE)
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N References
- github.com/advisories/GHSA-fxcw-h3qj-8m8p
- github.com/n8n-io/n8n/security/advisories/GHSA-fxcw-h3qj-8m8p
- nvd.nist.gov/vuln/detail/CVE-2026-33722
- github.com/n8n-io/n8n/security/advisories/GHSA-fxcw-h3qj-8m8p Vendor Mitigation
- github.com/n8n-io/n8n/security/advisories/GHSA-fxcw-h3qj-8m8p Vendor Mitigation
AI Threat Alert