← All advisories

CVE-2026-137930mediumPrompt injection2026-11-30

CVE-2026-137930: Strands Agents Tools' http_request kept host-restricted API keys on redirects, so a crafted prompt could send them to an attacker's server (fixed 0.8.8)

In Strands Agents Tools before 0.8.8, the http_request tool's redirect handling did not strip sensitive information. API keys that HTTP_REQUEST_TOKEN_CONFIG restricts to allowlisted hosts could be sent onward when a crafted prompt made the agent request a URL that redirects to an attacker-controlled host. Fixed in 0.8.8; AWS recommends moving to the http_request tool in the Strands Agents SDK, as Strands Agents Tools was deprecated in 0.9.0.

01.

What it is

HTTP_REQUEST_TOKEN_CONFIG lets you attach API keys only to requests for allowlisted hosts.

On a redirect, the tool forwarded those credentials to the new location without re-checking the allowlist, so an allowlisted URL that redirects elsewhere leaks the key.

An unauthenticated remote actor only needs to get a crafted prompt in front of the agent (directly or via injected content). Affected: strands-agents-tools before 0.8.8; AWS bulletin 2026-204-AWS.

02.

How to check

  1. Run pip show strands-agents-tools and check the version.
  2. Check whether your agents use http_request with HTTP_REQUEST_TOKEN_CONFIG.
03.

How to fix

  1. Upgrade to strands-agents-tools 0.8.8 or later, or migrate to the http_request tool in the Strands Agents SDK as AWS recommends.
  2. Rotate API keys configured in HTTP_REQUEST_TOKEN_CONFIG if agents processed untrusted input on older versions.
pip show strands-agents-tools | grep -i '^version'
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.