SSRF via incomplete validation of IPv6 transition addresses in HTTP datasources
Description
Appsmith's destination-address filter does not account for the IPv4 destinations embedded in certain IPv6 transition addresses, including NAT64 and 6to4. An authenticated user who can create or edit REST API or GraphQL datasource actions can bypass restrictions on internal destinations when the server's network provides the corresponding translation or relay connectivity. This affects self-hosted Appsmith Community and Enterprise installations, including those with the default address filter enabled.
Impact
An attacker can make the Appsmith server send HTTP requests to otherwise restricted internal services and read their responses. Depending on network reachability and the target services' authentication and metadata protections, this can expose internal data or instance credentials. Unlike the separate leading-zero IP parsing issue, this issue requires translation or relay connectivity; a default single-container installation without that connectivity is not exposed through this mechanism.
Affected and patched versions
Appsmith versions before 2.4 are affected in the network environments described above. Upgrade to 2.4 or later. The patch extends destination validation to cover the affected IPv6 transition address forms.
Workarounds
Until an upgrade is possible, limit permission to create or edit REST API and GraphQL datasource actions to trusted users. This reduces exposure but does not correct the validation gap.
After upgrading
If you identify unauthorized access to instance credentials, revoke or rotate the exposed credentials and review their use.
Credits
Thanks to tonghuaroot (童话) (@tonghuaroot) for reporting this issue.