CVE-2026-137958 in n8n
Summary
by MITRE • 11/27/2026
n8n before 2.47.6, 2.48.x before 2.48.3, and 3.x before 3.2.2 contains a server-side request forgery vulnerability in the AWS Bedrock Chat Model and Embeddings AWS Bedrock nodes, where requests to a custom Bedrock runtime endpoint set in an AWS credential bypass n8n's SSRF protection. An authenticated user who can create AWS credentials can point the endpoint at internal or blocked addresses, causing n8n to send requests there and exposing the start of responses in node errors.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified affects multiple versions of the n8n workflow automation platform, specifically releases prior to 2.47.6, version series 2.48.x prior to 2.48.3, and major release 3.x prior to version 3.2.2. This flaw is classified as a Server-Side Request Forgery (SSRF) vulnerability located within the AWS Bedrock Chat Model and Embeddings nodes. The core technical issue arises from how n8n handles custom endpoint configurations for AWS credentials associated with these specific integration nodes. When an authenticated user configures AWS credentials, they have the ability to specify a custom runtime endpoint URL. In vulnerable versions of the software, this configuration bypasses the internal SSRF protection mechanisms designed to restrict outbound requests to safe or authorized destinations. Consequently, the application fails to validate whether the provided endpoint points to external public services or restricted internal network addresses.
From an operational perspective, this lack of validation allows an authenticated attacker with permission to create or modify AWS credential configurations to redirect n8n's outgoing traffic toward internal infrastructure components that are typically inaccessible from the internet. By pointing the custom Bedrock runtime endpoint at local loopback addresses, private IP ranges, or other blocked internal services, the attacker forces the server to initiate HTTP requests on their behalf. This capability effectively turns the application into a proxy for network reconnaissance and potential exploitation of backend services. The impact is further exacerbated by the fact that n8n exposes parts of the response from these forged requests within node error messages. This data leakage means that an attacker can not only probe internal networks but also retrieve sensitive information contained in the responses, such as metadata, headers, or even partial content from internal APIs and services.
This vulnerability aligns with Common Weakness Enumeration (CWE) ID 918, which describes Server-Side Request Forgery: Misconfiguration of Web Application Firewall, specifically highlighting failures in input validation for URL schemes and hostnames. In the context of the MITRE ATT&CK framework, this behavior corresponds to T1560.002, Data Staged via Cloud Services, as well as techniques related to network scanning such as T1046 Network Service Discovery. The ability to exfiltrate data through error messages also touches upon information leakage principles often associated with CWE 209: Generation of Error Message Containing Sensitive Information.
To mitigate this risk, organizations running affected versions of n8n must upgrade immediately to version 2.47.6 or later for the legacy branch, 2.48.3 or later for the 2.48 series, and 3.2.2 or later for the current major release. These updates include patches that enforce stricter validation on custom endpoint URLs, ensuring they cannot be directed toward internal or reserved IP ranges. Until an upgrade is performed, administrators should restrict user permissions to prevent non-administrative users from creating AWS credentials with custom endpoints. Additionally, implementing network-level controls such as egress filtering can provide a secondary layer of defense by blocking outbound connections to private address spaces from the n8n server environment.