Skip to content
Medium 6.9

Unclaimed WebSocket Upgrade Requests Exhaust File Descriptors in the n8n Server

GHSA-p3cc-p7wp-f2x7 First seen on SecPulse

Summary

Impact

The n8n HTTP server accepted WebSocket upgrade requests on paths that no n8n component handled and never closed the resulting connections. Each such request left one socket and file descriptor open in the main process indefinitely. An unauthenticated attacker who could reach the n8n HTT...

Affected packages

PackageAffected → Fixed
npmn8n
< 1.123.102→ >= 1.123.102
npmn8n
< 2.50.2→ >= 2.50.2
npmn8n
< 2.49.7→ >= 2.49.7
dockern8nio/n8n
< 3.4.1→ >= 3.4.1
Original description The description as published by the source.

Impact

The n8n HTTP server accepted WebSocket upgrade requests on paths that no n8n component handled and never closed the resulting connections. Each such request left one socket and file descriptor open in the main process indefinitely. An unauthenticated attacker who could reach the n8n HTTP port could send many of these requests until the process ran out of file descriptors, so the editor, the API and production webhooks stopped responding until n8n was restarted.

Patches

The issue has been fixed in n8n versions 1.123.102, 2.49.7, 2.50.2 and 3.4.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 n8n instance access to fully trusted users only.
  • Apply network-level controls so that only trusted clients can reach the n8n HTTP port.
  • Configure the reverse proxy in front of n8n to forward WebSocket upgrade requests only for the paths the n8n editor and chat use.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details