CVE-2026-137957 in n8n
Summary
by MITRE • 11/27/2026
n8n before 1.123.96, 2.47.6, 2.48.3, and 3.2.2 contains a path traversal vulnerability in integration nodes that build API request paths from unencoded record, table, or resource ID parameters. Attackers can supply relative path segments through untrusted input such as webhook bodies to read, modify, or delete unintended resources using the node's stored credential.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/27/2026
The identified security flaw resides within n8n versions prior to 1.123.96, 2.47.6, 2.48.3, and 3.2.2, specifically affecting integration nodes that construct API request paths using unencoded identifiers such as record, table, or resource IDs. This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory, which describes weaknesses where software does not properly neutralize special elements within file path names. In this context, the flaw manifests when integration nodes fail to sanitize user-supplied input before incorporating it into API endpoint URLs. The core technical issue is the lack of proper encoding or validation for parameters that are directly concatenated into request paths, allowing attackers to inject relative path segments like dot-dot-slash sequences.
The operational impact of this vulnerability is significant because n8n typically stores sensitive credentials within its workflow configurations and integration nodes. When an attacker exploits this path traversal weakness by supplying malicious input through untrusted vectors such as webhook bodies or API parameters, they can manipulate the resulting HTTP request to target unintended resources. This capability enables unauthorized access to data that should be restricted to specific records or tables. Furthermore, depending on the permissions associated with the stored credentials and the capabilities of the integrated service, an attacker may not only read sensitive information but also modify existing data structures or delete critical resources entirely. The severity is amplified by the fact that these integrations often operate with elevated privileges granted by the user who configured the workflow, thereby expanding the blast radius of a successful exploitation.
From a threat intelligence perspective, this vulnerability aligns with ATT&CK technique T1059: Command and Scripting Interpreter if used to trigger further actions, but more accurately maps to T1083: File and Directory Discovery when targeting local or remote file systems via API endpoints that expose filesystem-like structures. It also relates to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component, as the untrusted input is passed directly into an HTTP request builder without adequate sanitization. The attack vector typically involves external actors sending crafted requests to exposed webhook URLs or API endpoints managed through n8n workflows, leveraging the trust relationship between the automation platform and the third-party service it integrates with.
To mitigate this risk, organizations running affected versions of n8n must upgrade immediately to version 1.123.96, 2.47.6, 2.48.3, or 3.2.2 where these path traversal issues have been addressed through improved input validation and encoding mechanisms. In environments where immediate upgrading is not feasible, administrators should implement strict access controls on webhook endpoints to ensure that only trusted sources can trigger workflows containing vulnerable integration nodes. Additionally, reviewing the permissions assigned to service accounts used in integrations can limit the potential damage; applying the principle of least privilege ensures that even if an attacker successfully traverses paths, they cannot perform destructive actions such as deletion or modification beyond read-only access where possible. Regular security audits and penetration testing focused on API endpoint handling should be conducted to identify similar input validation weaknesses across other integration nodes within the automation platform.