IMDSv2 metadata token request follows HTTP redirects in ex_aws
CVE-2026-59697Published 24 Nov 2026, 11:43 UTC
Real-world risk
0.6/ 10Low
Routine
If the vulnerable configuration applies to you: 1.2
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.6
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ex_awsNiche | >= 2.3.0, < 2.8.0 | 2.8.0 |
What to do
Update to a fixed version: 2.8.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | AdjacentSame Wi-Fi, Bluetooth range or network segment | From the CVSS vector | 0.40 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 26), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.081
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.081 × threat 0.850.551
- Rounded to one decimal between 0.1 and 100.6
Exploitation and evidence timeline
- 24 Nov 2026 Published
- 3 Dec 2026 Risk 0.6 (cvss fallback)
Weakness
CWE-918
References
- https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664related, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-59697.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-59697related
- https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234related
- https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0patch
- CVE-2026-59697 on CVE.org