{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4d7923c16f613cc2bade2ed325d444bba0bc7234"
                  },
                  {
                    "fixed": "9fcc3605c7a0ecf8e205a72c50de3ced72befed0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.3.0"
                  },
                  {
                    "fixed": "2.8.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "4d7923c16f613cc2bade2ed325d444bba0bc7234"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "9fcc3605c7a0ecf8e205a72c50de3ced72befed0"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "4d7923c16f613cc2bade2ed325d444bba0bc7234"
            },
            {
              "fixed": "9fcc3605c7a0ecf8e205a72c50de3ced72befed0"
            },
            {
              "introduced": "d7838db5578ab83e13768c36748436bd0d052b5c"
            },
            {
              "fixed": "01f6a7bc6f29ee3f2aee1674b48dcc01fa466ec5"
            },
            {
              "fixed": "4d7923c16f613cc2bade2ed325d444bba0bc7234"
            }
          ],
          "repo": "https://github.com/ex-aws/ex_aws",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-mww9-g5mj-j664"
  ],
  "database_specific": {
    "cna_assigner": "EEF",
    "cwe_ids": [
      "CWE-918"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59697.json"
  },
  "details": "Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis 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.\n\nex_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.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0.",
  "id": "CVE-2026-59697",
  "modified": "2026-11-24T12:46:09.118190990Z",
  "published": "2026-11-24T11:43:17.078Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://cna.erlef.org/cves/CVE-2026-59697.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59697.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ex-aws/ex_aws"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59697"
    },
    {
      "type": "WEB",
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-59697"
    },
    {
      "type": "WEB",
      "url": "https://repo.hex.pm"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "IMDSv2 metadata token request follows HTTP redirects in ex_aws"
}