Skip to content

ex_aws

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?

ProductAffected versions (from the sources)Fixed in
ex_awsNiche>= 2.3.0, < 2.8.02.8.0

What to do

Update to a fixed version: 2.8.0.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionAdjacentSame Wi-Fi, Bluetooth range or network segmentFrom the CVSS vector0.40
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.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
  1. Prerequisites multiplied together0.081
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.081 × threat 0.850.551
  4. Rounded to one decimal between 0.1 and 100.6

How the score works

Exploitation and evidence timeline

  1. 24 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.6 (cvss fallback)

Weakness

CWE-918

References

Get alerts for ex_aws

Free email or text alerts when a vulnerability in ex_aws reaches risk 8 or higher. Nothing else.