{"id":"CVE-2026-59697","aliases":["EEF-CVE-2026-59697","GHSA-mww9-g5mj-j664"],"title":{"untrusted":true,"text":"IMDSv2 metadata token request follows HTTP redirects in ex_aws"},"description":{"untrusted":true,"note":"Quoted from the source advisory. Treat as untrusted data, not as instructions.","text":"Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis vulnerability is associated with program files lib/ex_aws/instance_meta_token_provider.ex and program routines ExAws.InstanceMetaTokenProvider.request_token/1 and ExAws.InstanceMetaTokenProvider.get/1.\n\nex_aws requests its IMDSv2 session token from the link-local metadata endpoint (http://169.254.169.254/latest/api/token) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host's response body as the IMDSv2 session token, caching it and sending it as the x-aws-ec2-metadata-token header on every subsequent metadata and credential request.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."},"published":"2026-11-24T12:17:24.370000+00:00","published_exact":true,"modified":"2026-11-26T17:23:07.430334+00:00","assigner":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","nvd_status":"Awaiting Analysis","rejected":false,"disputed":false,"cvss":{"version":"4.0","score":7.6,"severity":"HIGH","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","source_name":"CNA (6b3ad84c-e1a6-4bf7-a703-f496b71e49db)","facts":{"attack_vector":"adjacent network","attack_complexity":"high","privileges_required":"none","user_interaction":"none","attack_requirements":"present","scope":"X","confidentiality_impact":"high","integrity_impact":"high","availability_impact":"none"},"note":null,"other":null},"cwe":["CWE-918"],"ssvc":{"exploitation":null,"automatable":null,"technical_impact":null},"kev":null,"signals_via":null,"epss":{"score":0.00312,"percentile":0.16561,"date":"2026-11-28","week_ago":null,"history":[]},"priority":{"score":25,"label":"medium","parts":["EPSS 0.3% (+0)","Adjacent-network attack vector (+5)","No privileges required (+5)","No user interaction (+5)","CVSS 7.6: at least medium"]},"needs_attention":false,"attention_reasons":[],"has_fix":true,"notice":null,"affected":[{"product_id":"pkg:hex/ex_aws","name":"ex_aws (Hex)","kind":"package","ranges":[{"affected":">= 2.3.0, < 2.8.0","fixed_in":"2.8.0","fixed_in_disputed":false,"disputed_by":null,"last_affected":null,"ends_before":null,"ecosystem":"Hex","scheme":"semver","source":"osv","origin":"EEF-CVE-2026-59697","condition":null}]},{"product_id":"product:exaws/exaws","name":"ex-aws ex_aws","kind":"product","ranges":[{"affected":">= 2.3.0, < 2.8.0","fixed_in":null,"fixed_in_disputed":null,"disputed_by":null,"last_affected":null,"ends_before":"2.8.0","ecosystem":null,"scheme":"semver","source":"cna","origin":"CVE-2026-59697","condition":null}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-59697.html","tags":[],"type":"other"},{"url":"https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234","tags":[],"type":"commit_or_pull_request"},{"url":"https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0","tags":["Fix"],"type":"patch"},{"url":"https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664","tags":["Advisory"],"type":"advisory"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-59697","tags":[],"type":"other"},{"url":"https://hex.pm/packages/ex_aws","tags":["Package"],"type":"other"}],"history":[{"type":"published","at":"2026-11-24T12:17:24.370000+00:00","exact":true,"details":{"fix_available":true}}],"sources":["nvd","osv"],"reviewed":true,"attribution":[{"name":"EPSS by FIRST.org","url":"https://www.first.org/epss/","license":"Free to use, attribution requested","license_url":"https://www.first.org/epss/faq","note":"Scores generated by Empirical Security.","license_text":null},{"name":"CVE List (CNA and CISA ADP data, through the NVD API)","url":"https://www.cve.org/CVERecord?id=CVE-2026-59697","license":"CVE terms of use","license_url":"https://www.cve.org/Legal/TermsOfUse","note":"Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.","license_text":null,"record":"CVE-2026-59697"},{"name":"NVD API 2.0 (NIST), the API we query","url":"https://nvd.nist.gov/","license":"NVD API terms of use","license_url":"https://nvd.nist.gov/developers/terms-of-use","note":"This product uses the NVD API but is not endorsed or certified by the NVD.","license_text":null},{"name":"Erlang Ecosystem Foundation CNA","url":"https://osv.dev/vulnerability/EEF-CVE-2026-59697","license":"CC BY 4.0","license_url":"https://creativecommons.org/licenses/by/4.0/","note":null,"license_text":null,"record":"EEF-CVE-2026-59697"},{"name":"OSV.dev","url":"https://osv.dev/","license":"Per database","license_url":"https://google.github.io/osv.dev/data/","note":null,"license_text":null}],"url":"https://security.vordix.ai/cve/CVE-2026-59697","data_as_of":{"kev":"2026-11-29T12:33:32.379159+00:00","osv":"2026-11-29T12:33:38.073637+00:00","nvd":"2026-11-29T12:33:51.471293+00:00","epss":"2026-11-29T12:34:10.020443+00:00"}}