CVE-2026-137970 in ToolJet
Summary
by MITRE • 11/27/2026
ToolJet before 3.21.96-LTS contains a server-side request forgery vulnerability in ssrf-protection.ts that fails to classify NAT64 (64:ff9b::/96, 64:ff9b:1::/48) and 6to4 (2002::/16) IPv6 addresses embedding internal IPv4. Authenticated users can set REST API, GraphQL, OpenAPI, or OAuth data-source URLs to attacker hostnames whose AAAA records resolve to these forms, bypassing pre-request and dial-time guards to reach cloud metadata and internal hosts.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/27/2026
ToolJet versions prior to 3.21.96-LTS are affected by a server-side request forgery vulnerability located within the ssrf-protection.ts module. This flaw stems from an incomplete validation of IPv6 addresses, specifically failing to recognize that certain global unicast IPv6 prefixes can encapsulate internal or private IPv4 addresses through translation mechanisms such as NAT64 and 6to4. The affected address ranges include the NAT64 prefix 64:ff9b::/96 along with its sub-prefix 64:ff9b:1::/48, as well as the legacy 6to4 transition mechanism represented by the 2002::/16 block. These specific IPv6 formats are designed to map directly onto IPv4 addresses, meaning that an attacker can craft a hostname whose AAAA DNS record resolves to one of these special-purpose IPv6 ranges which subsequently translates to a private or internal IP address on the server side.
The operational impact of this vulnerability is significant because it allows authenticated users to bypass existing security controls designed to prevent SSRF attacks. ToolJet employs pre-request and dial-time guards intended to block requests targeting local, loopback, or cloud metadata endpoints. However, due to the oversight in classifying these specific IPv6 address types, an attacker can configure data-source URLs for REST API, GraphQL, OpenAPI, or OAuth integrations to point at hostnames that resolve via AAAA records to NAT64 or 6to4 addresses mapping to internal resources. This effectively circumvents the IP-based allowlists and blocklists typically used in SSRF mitigations, enabling the application server to make HTTP requests to sensitive internal services from a context where such access should be denied.
This vulnerability aligns with CWE-918, which describes Server-Side Request Forgery (SSRF) flaws resulting from insufficient validation of user-supplied input that leads to unauthorized network access. Furthermore, it relates to CWE-20 regarding improper input validation and CWE-745 concerning the use of externally-controlled pointers or offsets leading to unintended behavior in security-critical contexts. From an adversary perspective, this technique corresponds to ATT&CK tactic T1187, where attackers leverage trusted applications to perform SSRF attacks against internal infrastructure. The ability to reach cloud metadata services poses a severe risk as it can lead to the compromise of instance credentials and subsequent lateral movement within the environment.
To mitigate this vulnerability, organizations must upgrade ToolJet to version 3.21.96-LTS or later where the ssrf-protection.ts module has been updated to properly identify and block these encapsulated IPv4 addresses within IPv6 formats. In addition to upgrading, administrators should implement defense-in-depth strategies by validating not only IP addresses but also DNS resolution outcomes at multiple stages of request processing. It is advisable to resolve hostnames early in the pipeline and verify that the resulting IP address falls outside a strict allowlist of permitted public ranges before initiating any outbound connection. Network-level controls such as egress filtering can further restrict the application server from accessing internal subnets, providing an additional layer of protection against SSRF exploitation attempts targeting cloud metadata or private services.