Trending: On-device modelsSearch
iHeartGeek
iTECH

AWS warns of API-key exposure flaw in Strands Agents Tools

AWS says a redirect flaw in deprecated Strands Agents Tools could expose API keys; affected users should migrate, patch and rotate credentials.

Blue server rack representing infrastructure security for an AWS Strands Agents Tools vulnerability report

AWS has disclosed a security flaw in the deprecated Strands Agents Tools package that could expose API keys when its `http_request` tool follows a redirect to an attacker-controlled host. The issue, tracked as CVE-2026-137930, affects versions before 0.8.8 and is limited to key disclosure rather than a confirmed breach or observed exploitation.1

The bug centres on the package's `HTTP_REQUEST_TOKEN_CONFIG` handling. When an API key was configured for an allowlisted host using the `api_key` authentication type, the tool could continue sending that key in an `X-API-Key` header after the request was redirected to a different host. An attacker who could influence content read by an agent, and who knew of a redirect from the approved host to infrastructure they controlled, could then obtain the key.1

Who is affected?

The affected component is Strands Agents Tools, a package of pre-built tools for the Strands Agents SDK. AWS says installations below version 0.8.8 are affected. The package was deprecated in version 0.9.0, while the vulnerable `http_request` tool was deprecated in 0.8.9, so teams should not treat a routine package update as the whole answer.1

AWS recommends migrating to the `http_request` tool in the Strands Agents SDK and applying the 0.8.8 fix where the older package remains in use. It also recommends rotating API keys configured through `HTTP_REQUEST_TOKEN_CONFIG` on earlier versions. Organisations with forks or derivative implementations should make sure the same redirect-handling fix has been carried across.1

There is a temporary workaround for teams that cannot upgrade immediately: configure the key with an authentication type that sends it in the `Authorization` header instead of `api_key`. AWS says the `Authorization` header is stripped on cross-host redirects, reducing the specific disclosure risk described in the bulletin. That workaround should be treated as a stopgap rather than a replacement for migration and key rotation.1

The advisory links the issue to a GitHub security advisory and the CVE record, which independently identify the affected version range and patched release.23 Neither AWS nor the linked records reports confirmed exploitation. That distinction matters: the flaw creates a route for disclosure under particular redirect and content-control conditions, but the bulletin is not an announcement of a known incident.

Our opinion

This is the sort of bug that can look narrow until an agent is connected to real credentials. Redirects are ordinary web behaviour, and allowlists can create false confidence if the destination is not revalidated before a secret is attached. Teams using Strands Agents Tools should treat the disclosure as a prompt to inventory old packages, rotate exposed keys and inspect forks, not simply as a reason to wait for someone else to publish an exploit.

The broader lesson is that agent toolchains need the same secret-handling discipline as conventional services, with an extra emphasis on content that an agent may read and act upon. AWS has not reported exploitation here, but the remediation is clear enough that affected users should not wait for one before moving away from the deprecated package.

Affected component
Package
Strands Agents Tools
Vulnerable versions
Before 0.8.8
Fixed version
0.8.8
Issue
API-key disclosure after a cross-host redirect

The hero image is an abstract server-rack photograph supplied by Pexels; it represents the infrastructure-security context and is not an image of AWS or the Strands package. Photo by panumas nikhomkhai on Pexels.4