CVE-2026-59697
7.6HighPublished Nov 24, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite
High
0CVSS v4.010
- Attack vector
- Adjacent network
- Complexity
- High
- Privileges
- None
- User action
- None
- Impact
- High impact on confidentiality, integrity
- Weakness
- CWE-918
What an attacker gets
Attackers on your local network can spoof the AWS metadata service and force your application to use a malicious token. This allows them to steal credentials or perform unauthorized actions as the instance role.
Root cause
The library follows HTTP redirects when requesting IMDSv2 tokens without validating that the redirect target remains within the link-local address space.
Affected versions
ex_aws 2.3.0 through 2.7.x
CVSS v4.0 · 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
Fix & remediation
Upgrade to ex_aws version 2.8.0 or later. If you cannot update immediately, ensure your network environment restricts unauthorized traffic to the link-local address 169.254.169.254.
$ mix deps.update ex_awsAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
- https://cna.erlef.org/cves/CVE-2026-59697.html
- https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234
- https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0
- https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664
- https://osv.dev/vulnerability/EEF-CVE-2026-59697
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-973457.5HighUnauthenticated attackers can enumerate order IDs to harvest secret order keys. This allows them to access customer PII including names, emails, and billing addresses.
- CVE-2026-854167.2HighUnauthenticated attackers can inject malicious scripts into admin pages via public form submissions. These scripts execute in the browser of any administrator who views the injected leads.
- CVE-2026-854127.2HighUnauthenticated attackers can inject malicious scripts into your site that execute in a user's browser. They can obtain the required form nonce via an unprotected REST endpoint without needing any credentials.
- CVE-2026-760758.8HighAuthenticated attackers can achieve remote code execution by uploading and activating malicious plugins. This requires at least Subscriber-level access to the WordPress site.
- CVE-2026-1375568.8HighAuthenticated users with stacks:edit permissions can achieve remote code execution as root. They do this by sending a crafted path to the API to overwrite system files.
- CVE-2026-1375527.5HighRemote attackers can bypass two-factor authentication and forced password resets to gain full-access tokens. They need a user's valid username and password to exploit this.