---
id: "CVE-2026-115415"
kind: "vulnerability"
aliases: ["CVE-2026-115415"]
title: "Improper neutralization of input used for LLM prompting in the environment tool in Strands Agents Tools before 0.8.6\u2026"
severity: "high"
cvss: 6.5
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: []
ecosystems: []
tags: ["ai-agents", "ai-tooling", "aws", "lab-disclosure", "python", "strands-agents"]
not_affected_if: ["environment-tool-not-loaded", "no-credentials-in-environment", "version-0.8.6-or-later"]
published_at: "2026-10-28T00:00:00+00:00"
first_seen_at: "2026-10-28T20:07:44+00:00"
updated_at: "2026-10-28T20:35:10+00:00"
sources: [{"source": "lab", "url": "https://aws.amazon.com/security/security-bulletins/rss/2026-154-aws/", "first_seen_at": "2026-10-28T20:07:44+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-115415", "first_seen_at": "2026-10-28T20:35:10+00:00"}]
---

# Improper neutralization of input used for LLM prompting in the environment tool in Strands Agents Tools before 0.8.6…

The environment tool in strands-agents-tools let the LLM turn off secret masking through its tool schema. A crafted prompt in content the agent processes can make it return the agent host's environment variables in cleartext, including cloud credentials and API keys.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed version with `pip show strands-agents-tools` and look for versions at or above `0.1.0` and below `0.8.6`.
- Check whether the agent loads the environment tool, for example by searching agent code for `environment` in the tools list.

## Fix

- Upgrade `strands-agents-tools` to `0.8.6` or later.
- Remove the environment tool from agents if you cannot upgrade right away.
- Rotate any cloud credentials and API keys present in the environment of agents that loaded the environment tool.
- Restrict outbound network access from agent hosts to trusted endpoints.

## Timeline

- 2026-10-28T20:07:44+00:00 lab https://aws.amazon.com/security/security-bulletins/rss/2026-154-aws/ — AWS: CVE-2026-115415 - Secret masking bypass in the environment tool in Strands Agents Tools
- 2026-10-28T20:35:10+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-115415

## Documents

- [advisory] AWS: CVE-2026-115415 - Secret masking bypass in the environment tool in Strands Agents Tools https://aws.amazon.com/security/security-bulletins/rss/2026-154-aws/

## From the sources

CVE-2026-115415 - Secret masking bypass in the environment tool in Strands Agents Tools

### CVE-2026-115415 - Secret masking bypass in the environment tool in Strands Agents Tools

Bulletin ID: 2026-154-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 10/28/2026 12:30 PM PDT

Description:

Strands Agents Tools (strands-agents-tools) is an open-source Python package of pre-built tools for the Strands Agents SDK. The environment tool lets an agent list, read, set, and delete environment variables on the agent host, and masks values that look like secrets by default. We identified CVE-2026-115415, an issue where the environment tool accepted a masking parameter from the large language model (LLM) through its tool schema. A crafted prompt, delivered through content the agent is asked to process, could instruct the model to call the tool with masking turned off. The tool would then return the agent host's environment variables in cleartext, including cloud credentials and API keys, without prompting the operator for consent.

Impacted versions: >= 0.1.0 AND < 0.8.6

Resolution:

This issue has been addressed in strands-agents-tools version 0.8.6. Masking is now controlled only by the operator, and the model can no longer disable it. The environment tool is also deprecated as of this release. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. We also recommend rotating any credentials that were present in the environment of agents that loaded the environment tool.

Workarounds:

If you cannot upgrade right away, remove the environment tool from your agents. Avoid running agents with long-lived cloud credentials or API keys in the process environment, and restrict outbound network access from the agent host to trusted endpoints only.

References:

- CVE-2026-115415
- GHSA-qjx4-hg6g-2f34

 Please email aws-security@amazon.com with any security questions or concerns.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
