Last updated December 1, 2026. We reproduced CVE-2026-137930 on strands-agents-tools 0.8.7 and 0.8.8, and confirmed the 0.9.0 removal, on December 1, 2026. Secrets in the lab were placeholder strings.
CVE-2026-137930 is a credential-leak bug in the http_request tool of Strands Agents Tools, the pre-built tool package for AWS’s open-source Strands Agents SDK. In versions before 0.8.8, an API key bound to an allowlisted host could be forwarded to a different host when that allowlisted host returned a redirect, so an attacker who controls where a trusted host redirects could capture the key.
AWS published the advisory on November 30, 2026, rated it moderate, and said the fix shipped in 0.8.8. We installed 0.8.7 and 0.8.8 and ran the exact scenario against two local servers. On 0.8.7 the API key reached the attacker host; on 0.8.8 it did not. The leak only runs on a GET request, which the tool sends without asking the operator to confirm.
This matters because the same package was deprecated weeks earlier. Strands Agents Tools reached end of life in version 0.9.0 on November 4, 2026, and its tools now raise errors on import, so the real fix for most teams is a migration, not a patch. No vendor paid for this page.
TL;DR
- CVE-2026-137930 affects the http_request tool in strands-agents-tools before 0.8.8. An allowlisted host that redirects to another host could carry an X-API-Key credential to that host.
- AWS rates it moderate: the GitHub advisory lists CVSS 3.1 6.5, and the NVD record shows AWS’s CVSS 4.0 score of 5.9. The impact is limited to disclosure of the key.
- It triggers through indirect prompt injection: content the agent reads steers it to call an allowlisted host that has an open redirect to an attacker host.
- We reproduced it. On 0.8.7 the key reached the attacker host on a GET; on 0.8.8 it was stripped. Bearer tokens in the Authorization header were dropped on the cross-host hop in both versions.
- The package is end of life. In 0.9.0 (November 4, 2026) http_request is removed; migrate to strands.vended_tools.http_request or web_fetch, and rotate any keys configured through HTTP_REQUEST_TOKEN_CONFIG.
What AWS Disclosed on November 30
Strands Agents is AWS’s open-source SDK for building agents, and strands-agents-tools is the companion package of ready-made tools. Its http_request tool lets an agent call external APIs, with an allowlist feature called HTTP_REQUEST_TOKEN_CONFIG that binds a secret to a set of approved hostnames so the credential is attached only to requests for those hosts.
In the AWS security bulletin of November 30, 2026, AWS said that when an API key bound through that allowlist is sent with the api_key auth type, the tool forwarded the key in the X-API-Key header after an allowlisted host redirected the request to a different host. The GitHub advisory puts the severity at CVSS 3.1 6.5 (moderate), and the NVD record lists AWS’s CVSS 4.0 score of 5.9 under CWE-212, improper removal of sensitive information before transfer.
The attack needs two things: an actor who can place content the agent reads, which is indirect prompt injection, and knowledge of an open redirect on an allowlisted host that sends clients to a host the actor controls. AWS says the impact is limited to disclosure of the key. The allowlist was checked only against the original request URL, so a redirect slipped the credential past it.
We Reproduced It on 0.8.7 and 0.8.8
We installed strands-agents-tools 0.8.7, the last release before the fix, and 0.8.8, the patched release. We stood up two local servers on different ports: an allowlisted host that answers a GET with a 302 redirect, and an attacker host that records the headers it receives. We bound a placeholder secret to the allowlisted host through HTTP_REQUEST_TOKEN_CONFIG and called the tool.
Different ports count as different hosts for redirect handling, so this mirrors an open redirect on a trusted host.

The result matched the advisory exactly. On 0.8.7, with the api_key auth type, the secret arrived at the attacker host in the X-API-Key header. On 0.8.8 it did not: the patched release strips non-standard headers when a redirect changes host or port, or downgrades HTTPS to HTTP. A bearer token in the Authorization header was dropped on the cross-host hop in both versions, so the leak is specific to custom credential headers such as X-API-Key, not to standard Authorization bearer tokens.
Two details make the bug worse in practice. The leaking request is a GET, and the tool only asks the operator to confirm on POST, PUT, PATCH, and DELETE, so the exfiltration runs with no human in the loop. And because the credential is bound through an environment variable allowlist, the agent never has to be told the secret for it to leak; the tool attaches it automatically for the allowlisted host.
This Is the Second Leak Through the Same Allowlist
CVE-2026-137930 is not the first credential-exfiltration bug in this tool. A single GitHub advisory tracks two vectors through HTTP_REQUEST_TOKEN_CONFIG. The first, CVE-2026-18394, let the model set a proxies parameter to an actor-controlled endpoint, leaking the Authorization header through the attacker’s proxy. AWS fixed that in 0.8.2 on July 31, 2026.
The redirect vector disclosed on November 30 is the second. Both let a credential bound to an approved host reach an unapproved one, and both start with indirect prompt injection. The release notes show the redirect fix landed in 0.8.8 as “strip non-standard headers on cross-host redirects.” If you are on a version between 0.8.2 and 0.8.7, the proxy hole is closed but the redirect hole is open.

The Package Is Already End of Life
The patch arrived as the package was being retired. AWS deprecated the http_request tool in 0.8.9 and the whole strands-agents-tools package in 0.9.0, on November 4, 2026. Versions before 0.9.0 keep working but get no further updates. We confirmed that in 0.9.0 the import from strands_tools.http_request import http_request raises an ImportError pointing to the replacements.
The migration guide moves the tool into the SDK. Raw API calls go to strands.vended_tools.http_request, and reading a web page goes to web_fetch. Authentication and host scoping no longer live in an environment-variable allowlist; they move into an httpx.AsyncClient you build and pass to make_http_request(client=...), so the operator, not the model, controls transport, redirects, and headers. The replacements are not drop-in equivalents, so test before you ship.
What to Do This Week
Find every agent that uses the community http_request tool and check its version. If you cannot upgrade immediately, AWS’s workaround is to bind credentials with an auth type that uses the Authorization header, which the library strips on a cross-host redirect, rather than the api_key type that uses X-API-Key.
- Pin strands-agents-tools to 0.8.8 or later if you must stay on the community package, which closes both the proxy and redirect vectors.
- Rotate any API keys configured through
HTTP_REQUEST_TOKEN_CONFIGon versions before 0.8.8, as a precaution even without evidence of exposure, as AWS recommends. - Plan the move to
strands.vended_tools.http_requestandweb_fetch, since the community package will get no more fixes. - Do not bind X-API-Key credentials to hosts that may issue open redirects, and treat any tool that both reads untrusted content and holds credentials as a prompt-injection exposure, as our prompt injection detection tools guide covers.
- Review the broader controls in our AI agent security tools guide and the agent-specific issues in our AI coding agent security tools roundup.
The wider lesson is that an allowlist is only as good as the point where it is checked. Binding a secret to a hostname does not help if the tool forwards the secret after the host hands control somewhere else. For how attackers harvest keys from agent infrastructure once they escape their intended host, see our report on ARTEX gateway key theft, and for inventorying the non-human identities behind these keys, our non-human identity tools guide.
What is CVE-2026-137930?
CVE-2026-137930 is a vulnerability in the http_request tool of strands-agents-tools before version 0.8.8. An API key bound to an allowlisted host through HTTP_REQUEST_TOKEN_CONFIG and sent with the api_key auth type was forwarded in the X-API-Key header when that host redirected to a different host. The impact is limited to disclosure of the key.
How severe is the Strands Agents Tools vulnerability?
AWS rates it moderate. The GitHub advisory GHSA-7856-jqx5-q7fv lists a CVSS 3.1 base score of 6.5, and the NVD record lists AWS’s CVSS 4.0 score of 5.9. Exploitation needs indirect prompt injection to steer the agent and an open redirect on an allowlisted host, and it leaks the API key without changing data or availability.
Which versions of strands-agents-tools are affected?
Versions before 0.8.8 are affected by the redirect vector. A related proxy vector, CVE-2026-18394, affected versions before 0.8.2. Both are fixed in 0.8.8. The http_request tool was deprecated in 0.8.9, and the whole package was deprecated in 0.9.0 on November 4, 2026, after which the legacy imports raise an error.
How do I fix the Strands Agents Tools http_request leak?
Upgrade to strands-agents-tools 0.8.8 or later, and rotate any keys configured through HTTP_REQUEST_TOKEN_CONFIG on earlier versions. Because the package is end of life, migrate to strands.vended_tools.http_request for API calls and web_fetch for web pages. As a workaround, bind credentials with an Authorization-header auth type, which is stripped on cross-host redirects.
Does this affect the Strands Agents SDK itself?
The bug is in the community strands-agents-tools package, not the core SDK. The SDK now ships its own http_request and web_fetch vended tools, which replace the deprecated community tool. Agents using the SDK’s vended tools are not exposed to this specific issue, though any tool that reads untrusted content and holds credentials is a prompt-injection risk.
Related Guides
Strands Box, the sandbox in the same Strands family, keeps API keys out of the agent entirely: our AWS Greenlight and Strands Box test confirmed the agent held only a placeholder and the real key was added at the gateway.
- Best AI agent security tools
- Prompt injection detection tools
- AI coding agent security tools
- Best non-human identity tools for AI agents
- ARTEX agent LLM gateway key theft
- AWS IAM Credential Broker
Sources
- AWS security bulletin 2026-204-AWS: CVE-2026-137930, improper removal of sensitive information on redirect in Strands Agents Tools (Nov 30, 2026)
- GitHub advisory GHSA-7856-jqx5-q7fv: strands-agents/tools (Nov 30, 2026)
- GitHub advisory GHSA-qhw6-2h72-m84v: credential exfiltration via proxy or cross-host redirect (Jul 31, 2026)
- AWS security bulletin 2026-069-AWS: CVE-2026-18394, incorrect authorization in the http_request tool (Jul 31, 2026)
- NVD: CVE-2026-137930 (CWE-212, AMZN CVSS 4.0 5.9)
- GitHub: strands-agents/tools releases v0.8.8, v0.8.9, v0.9.0
- Strands Agents: Migrate from the community tools package
- Strands Agents: HTTP request vended tool

