ex_aws IMDSv2 token request follows HTTP redirects (SSRF)
Key facts
- Attack vector
- Adjacent network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
ex_aws, an Elixir library, is affected from 2.3.0 before 2.8.0. Its IMDSv2 token request to the link-local metadata endpoint follows HTTP redirects without restricting the redirect target, which is a server-side request forgery flaw (CWE-918). An attacker who can influence responses to the metadata request, such as an on-segment neighbor spoofing the link-local address, can redirect it to an arbitrary host. The library then accepts that host's response as the session token and sends it on later metadata and credential requests.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ex-aws | ex_aws | 2.3.0 to before 2.8.0 | 2.8.0 | Patch available | CNA |
- ex_aws Vendorex-aws Affected 2.3.0 to before 2.8.0 Fixed in 2.8.0 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
The fixed version is ex_aws 2.8.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA ex_aws (ex-aws) Fixed in 2.8.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
ex-aws ex_aws 2.8.0
4 records Highest priority Priority LOW 4 LOW
Other records, highest priority first
- TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escapePriority LOW 32
- TI-2026-97241 Server-side request forgery in ex_aws S3 virtual-host requestsPriority LOW 26
- TI-2026-97228 S3 object key truncation and injection in ex_awsPriority LOW 23
Timeline
- 2026-11-24 Threatist record created from CVE-2026-59697
- 2026-11-24 Alias added: GHSA-vx85-vcmw-ph24
References
More ex-aws vulnerabilities
- TI-2026-97430 XML injection in ex_aws_s3 bucket configuration builders CVSS 4.0MEDIUM 6.9
- TI-2026-97439 XML injection in ExAws S3 batch delete lets attackers remove extra objects CVSS 4.0MEDIUM 5.9
- TI-2026-97429 XML injection in ex_aws_s3 object and bucket tagging CVSS 4.0LOW 2.1
- TI-2026-34676 ex_aws_sns SigningCertURL not validated in verify_message/1 CVSS 4.0HIGH 8.7
- TI-2026-97235 ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape CVSS 4.0HIGH 7.4
- TI-2026-97432 XML injection in ExAws.S3 lifecycle rule builder lets attackers add actions CVSS 4.0HIGH 7.0
Sources
- CVE-2026-59697 · CVE Program
- CVE-2026-59697 · NVD
- FIRST EPSS
- GHSA-vx85-vcmw-ph24 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences