n8n integration nodes can send credentials to the wrong API path
n8n exports a large collection of integration nodes that call third-party APIs with stored credentials. CVE-2026-137957 affects versions before 1.123.96, 2.47.6, 2.48.3, and 3.2.2. Several nodes build request paths from record, table, or resource identifiers without encoding the values correctly. A crafted identifier can change the path and cause an authenticated request to reach an unintended endpoint.
This is not only a file-system traversal issue. The vulnerable value influences an HTTP request made by the n8n service. The request can carry the credential or authorization header that the node configured for its intended API. The attacker does not need to know that credential if the workflow can be made to send it to a path under a host the node trusts.
Where attacker influence enters
Workflow parameters are usually authored by an administrator, but they can also come from webhooks, forms, inbound email, database records, or previous nodes. A table or record ID may appear to be an opaque value while still accepting slashes, encoded separators, or dot segments. The integration node then concatenates that value into a URL instead of treating it as one path component.
The impact varies by connector and by the privileges attached to its credential. A request might read another resource, invoke a state-changing endpoint, enumerate metadata, or reach an API route that the workflow author never intended. The CVE description does not claim that every node is exploitable or that every credential can be redirected to an arbitrary host. Review the exact integrations in use.
Upgrade and inspect workflows
Move to one of the fixed releases or a later supported version. Confirm the running container image or package, not only the version shown in a stale workflow export.
List nodes that accept record, table, folder, repository, project, or resource identifiers from dynamic input. Trace their values back to webhooks, public forms, imported data, and messages controlled by less trusted users. Add a validation node that accepts only the expected identifier format and maximum length where the integration does not encode the value safely.
Review execution history for paths containing .., encoded dots, double slashes, or unexpected path segments. The node may log only the final URL, so proxy and application logs from the downstream API can be more useful. Correlate those requests with the workflow execution ID and the credential used.
Contain credentials
Give every integration credential the smallest practical scope. Separate read-only API tokens from tokens that can modify records or configuration. Use one credential per integration where the provider permits it, so a compromised workflow does not expose every connected service.
If a request was redirected to an unintended path, rotate the affected token and review the provider's audit log. Look for data reads, changes, and new API clients. Remove credentials from workflow exports and use n8n's credential store or an external secret manager.
Verification limits
Patching closes the affected path construction, but it does not validate older execution logs or prove that no other node accepts unsafe identifiers. The security review should include custom nodes and community packages. Test a representative workflow with encoded separators and verify that the downstream request remains on the intended resource path.
Top comments (0)