CVE-2026-59697: IMDSv2 metadata token request follows HTTP redirects in ex_aws
Published 2026-11-24 · Updated 2026-11-26 · Also known as EEF-CVE-2026-59697, GHSA-mww9-g5mj-j664
Summary
A Server-Side Request Forgery vulnerability in the ex_aws library allows IMDSv2 token requests to follow arbitrary HTTP redirects. Engineering teams using ex_aws version 2.3.0 up to 2.8.0 on AWS EC2 should update their dependencies.
Who is affected
Affected deployments are those running on AWS EC2 where applications fetch AWS credentials via the ex_aws instance metadata token provider. An attacker positioned on-segment who can spoof the link-local address can reply with a 3xx redirect to an arbitrary host, causing the application to cache and use an attacker-controlled token on subsequent requests.
Exploitability
The CVSS vector indicates an adjacent network attack vector with high attack complexity and no privileges or user interaction required, resulting in high confidentiality and integrity impact. The current EPSS score is 0.003, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the Hex ex_aws package to version 2.8.0 or later.
How to check your project
- Inspect project dependency files (such as mix.lock) to determine if the Hex ex_aws package is within the vulnerable range of introduced 2.3.0 and fixed 2.8.0.
Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | ex_aws |
>= 2.3.0, < 2.8.0 | 2.8.0 | mix deps.update ex_aws |
CVSS 4.0 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
| Attack vector | Adjacent |
|---|---|
| Attack complexity | High |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Which program files and routines are affected?
The vulnerability involves `lib/ex_aws/instance_meta_token_provider.ex` and routines `ExAws.InstanceMetaTokenProvider.request_token/1` and `ExAws.InstanceMetaTokenProvider.get/1`.
Do applications that source credentials via environment variables need to worry?
No. Applications that source credentials by other means, such as environment variables or explicit configuration, do not reach the vulnerable code path.
Is there active exploitation documented for this vulnerability?
No, CISA Known Exploited Vulnerabilities indicates this vulnerability is not currently tracked as actively exploited.
Original advisory description
References
- ADVISORY https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664
- WEB https://cna.erlef.org/cves/CVE-2026-59697.html
- WEB https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234
- FIX https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0
- PACKAGE https://hex.pm/packages/ex_aws
Source records: EEF-CVE-2026-59697 (OSV.dev) · EPSS by FIRST, 2026-11-26.