Server-Side Request Forgery (SSRF) vulnerability in ash-project ash_authentication_oauth2_server allows an attacker who controls a client metadata URL and its DNS to make the server connect to internal or loopback addresses.
public_ip?/1 in AshAuthentication.Oauth2Server.CIMD.ReqFetcher enforces the outbound policy for CIMD metadata fetches. It classified several address forms as publicly routable that are not: IPv4-compatible ::/96 (for example ::127.0.0.1), SIIT IPv4-translated ::ffff:0:0:0/96, and deprecated site-local fec0::/10. A returned AAAA record in one of these ranges passed the policy, so a fetch pinned to that address reached space the policy was meant to block.
This issue affects ash_authentication_oauth2_server: from 0.3.0 before 0.3.1.
Reachable only when Client ID Metadata Documents are enabled (cimd_enabled?: true), so the authorize endpoint fetches attacker-suppliable metadata URLs, and an internal or loopback target resolves to one of the affected IPv6 address forms.
{
"$schema": "https://cna.erlef.org/schemas/osv/record-0.1.0.json",
"capec_ids": [
"CAPEC-664"
],
"cpe_ids": [
"cpe:2.3:a:ash-project:ash_authentication_oauth2_server:*:*:*:*:*:*:*:*"
],
"cwe_ids": [
"CWE-918"
]
}{
"$schema": "https://cna.erlef.org/schemas/osv/affected-0.1.0.json",
"modules": [
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher'"
],
"program_files": [
"lib/ash_authentication/oauth2_server/cimd/req_fetcher.ex"
],
"program_routines": [
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher':public_ip?/1",
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher':fetch/2"
]
}
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher'"
]
[
"lib/ash_authentication/oauth2_server/cimd/req_fetcher.ex"
]
[
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher':public_ip?/1",
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher':fetch/2"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-82757.json"
"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"
[
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher'"
]
[
"lib/ash_authentication/oauth2_server/cimd/req_fetcher.ex"
]
[
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher':public_ip?/1",
"'Elixir.AshAuthentication.Oauth2Server.CIMD.ReqFetcher':fetch/2"
]
"https://cna.erlef.org/osv/EEF-CVE-2026-82757.json"