CVE-2026-59697

7.6High

Published Nov 24, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite

7.6CVSS

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.

remediation — bash
$ mix deps.update ex_aws

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-59697

More fully triaged vulnerabilities you may want to check next.