Impact
The legacy helpers.request() function exposed to Code and Function nodes validated the request URL for SSRF before converting the request object for the underlying HTTP client. The conversion step preferred a url property over a uri property when both were present, while validation preferred uri. A user able to run workflow code could therefore supply a safe uri alongside a private or loopback url, so validation passed on the safe value while the outbound request went to the attacker-chosen internal address, with the response returned into the workflow.
Patches
The issue has been fixed in n8n versions 2.33.4 and 2.34.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.
- Disable Code node access for untrusted users.
- If an outbound proxy is configured, review whether it is required and consider removing it until the instance is patched.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Impact
The legacy
helpers.request()function exposed to Code and Function nodes validated the request URL for SSRF before converting the request object for the underlying HTTP client. The conversion step preferred aurlproperty over auriproperty when both were present, while validation preferreduri. A user able to run workflow code could therefore supply a safe uri alongside a private or loopback url, so validation passed on the safe value while the outbound request went to the attacker-chosen internal address, with the response returned into the workflow.Patches
The issue has been fixed in n8n versions 2.33.4 and 2.34.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:
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.