Skip to content
MediumVulnerability

GHSA-679f-58pq-4v2c: n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service

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 Instance AI workflow summary in n8n built its result using get-or-create-then-nested-write logic keyed by node names and connection keys from stored workflows. Because the editor's restricted-name guard is client-side, an attacker can post a workflow with a reserved key such as `__proto__` directly to the REST API, so the write lands on `Object.prototype` in the main n8n process and affects every later request. The advisory covers this prototype pollution flaw, which can lead to denial of service.

Mitigation

Fixed in n8n versions 2.37.7 and 2.38.2; upgrade to one of these or later. If upgrading is not immediately possible, restrict instance access to fully trusted users, remove or leave unconfigured the `N8N_INSTANCE_AI_MODEL*` environment variables, and restart the n8n process to clear in-memory pollution if an attack is suspected. These workarounds do not fully remediate the risk and are short-term measures only.