# CVE-2026-118644: n8n per-user credential theft via error workflow context inheritance

Source: https://junglewise.ai/threats/cve-2026-118644-n8n-before-2-41-5-and-2-42-x-before-2-42-2-passes-a-failed  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-28. Updated: 2026-10-28  
License: CC BY 4.0 with a link back

CVE-2026-118644 · Severity: high · CVSS 7.7 · Published 2026-10-28

n8n is a workflow automation platform that allows teams to create and run integration workflows. When a workflow fails, n8n passes the failed run's full execution context—including the identity of the user who started it—to an error-handling workflow. An attacker with project editor privileges can redirect a colleague's error workflow to one they control, allowing them to steal that colleague's identity and access their stored credentials, potentially exposing sensitive integrations.

Technologies: [N8n](https://junglewise.ai/threats/technologies/n8n). Vendors: [N8n](https://junglewise.ai/threats/vendors/n8n).

## Quick answers

**Is CVE-2026-118644 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-118644 being exploited in the wild.

**How severe is CVE-2026-118644?** High severity, with a CVSS score of 7.7, published 28 October 2026.

**Which products and versions are affected?** N8n before 2.41.5 and 2.42.x before 2.42.2.

**Is there a fix for CVE-2026-118644?** Yes: fixed in 2.41.5, 2.42.2. Until then: Restrict n8n instance access to fully trusted users only, audit team project memberships and remove editor access from untrusted users, review all active workflows and audit the settings.errorWorkflow field for unexpected values, or disable the dynamic credentials feature if not required. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-118644 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-118644?** Check whether you run N8n at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 2.41.5, 2.42.2

Restrict n8n instance access to fully trusted users only, audit team project memberships and remove editor access from untrusted users, review all active workflows and audit the settings.errorWorkflow field for unexpected values, or disable the dynamic credentials feature if not required.

## Technical details

The vulnerability exists in n8n's error-workflow execution context passing mechanism. When a workflow fails, the system passes the execution context containing the original user's identity to the configured error workflow; a project editor can modify a colleague's settings.errorWorkflow field to point to a workflow under their control, inherit the colleague's user identity in that execution context, and resolve per-user dynamic credential secrets. The fix restricts the execution context passed to error workflows to non-identity fields only.

## Affected products

- n8n n8n before 2.41.5 and 2.42.x before 2.42.2

## Timeline

- 2026-10-14: disclosed
- 2026-10-28: advisory

## References

- [https://github.com/n8n-io/n8n/security/advisories/GHSA-pcr3-v5vr-qppf](https://github.com/n8n-io/n8n/security/advisories/GHSA-pcr3-v5vr-qppf)
- [https://www.vulncheck.com/advisories/n8n-before-2.41.5-and-2.42.2-credential-theft-via-error-workflow-context-inheritance](https://www.vulncheck.com/advisories/n8n-before-2.41.5-and-2.42.2-credential-theft-via-error-workflow-context-inheritance)

## Related threats

- [n8n path traversal in Databricks node](https://junglewise.ai/threats/cve-2026-119557-n8n-from-2-14-0-through-2-46-3-contains-a-path-traversal)
- [n8n remote code execution in deprecated Function nodes](https://junglewise.ai/threats/cve-2026-119408-n8n-before-2-42-6-2-43-x-before-2-43-3-and-3-x-before-3-0-1)
- [n8n Slack Trigger SSRF and token exfiltration](https://junglewise.ai/threats/cve-2026-118679-n8n-before-1-123-83-2-41-4-and-2-42-1-contains-a-server-side)
- [n8n prototype pollution in workflow history compaction](https://junglewise.ai/threats/cve-2026-118678-n8n-before-2-41-4-and-2-42-x-before-2-42-1-contains-a-prototype)
- [n8n Local Gateway deep-link missing confirmation re-pairing](https://junglewise.ai/threats/cve-2026-118677-n8n-before-2-41-4-and-2-42-x-before-2-42-1-contains-a-missing)
