CVE-2026-59697
published high CVSS 4.0 · 7.6IMDSv2 metadata token request follows HTTP redirects in ex_aws
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ex-aws | — | ex_aws2.3.0 to < 2.8.0 · Other versions: unaffected | Affected | Not stated | EEF |
| ex-aws | — | ex-aws/ex_awsex_aws · 4d7923c16f613cc2bade2ed325d444bba0bc7234 to < 9fcc3605c7a0ecf8e205a72c50de3ced72befed0 · Other versions: unaffected | Affected | Not stated | EEF |
Description
Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider). This 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. ex_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. This issue affects ex_aws: from 2.3.0 before 2.8.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ex-aws | ex_aws | 2.3.0 to < 2.8.0 (affected · semver)Default: unaffected | EEF · cna |
| ex-aws | ex_aws | 4d7923c16f613cc2bade2ed325d444bba0bc7234 to < 9fcc3605c7a0ecf8e205a72c50de3ced72befed0 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-918 CWE-918 Server-Side Request Forgery
References
5- EEF CNA record for CVE-2026-59697 https://cna.erlef.org/cves/CVE-2026-59697.html
- Introducing commit 4d7923c in ex-aws/ex_aws https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234
- Fix commit 9fcc360 in ex-aws/ex_aws https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0
- https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664
- OSV record EEF-CVE-2026-59697 https://osv.dev/vulnerability/EEF-CVE-2026-59697
Provider assertions
2EEF · cna
IMDSv2 metadata token request follows HTTP redirects in ex_aws
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dff49b963116e954b13bdd3a989896e2c7481075b2b60a37aab2fd2b1253507f
- Ingested
- 01 Dec 2026, 17:00:20 UTC
- Source record
- Official CVE record