Strands Agents FileSessionManager world-readable storage

Severity: medium · CVSS 4 · Published 2026-10-27

Strands Agents is a Python library for building AI agents that persist session data to disk. By default, session files containing prompts, model outputs, tool inputs, and secrets are stored in /tmp/strands/sessions with overly permissive file permissions (0644 directories and 0755), allowing other local users on shared systems to read sensitive agent data. This exposes proprietary information and credentials on developer machines, CI hosts, and multi-user servers.

Technologies: strands-agents (PyPI). Vendors: PyPI.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Medium severity, with a CVSS score of 4, published 27 October 2026.
Which products and versions are affected?
strands-agents (PyPI) < 1.48.0, ECOSYSTEM:introduced=0,fixed=1.48.0; Strands Agents up to dd7b41de38cb; Strands-Agents before 1.48.0.
Is there a fix for This vulnerability?
Yes. strands-agents (PyPI): upgrade to 1.48.0 or later. Until then: Until upgrading, explicitly set storage_dir to a user-private location when initializing FileSessionManager, or configure the process to run with umask 077 to restrict file creation to owner-only access. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is This vulnerability attacked?
It is attacked with local access, in a software library.
Am I affected?
Check whether you run strands-agents (PyPI), Strands Agents or Strands-Agents at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • strands-agents (PyPI): upgrade to 1.48.0 or later
    pip install "strands-agents>=1.48.0"

Until upgrading, explicitly set storage_dir to a user-private location when initializing FileSessionManager, or configure the process to run with umask 077 to restrict file creation to owner-only access.

Technical details

The vulnerability stems from CWE-276 (incorrect default permissions): FileSessionManager creates session directories and JSON files using the process umask without explicitly setting restrictive permissions. On systems with umask 022, this results in world-readable session files (0644) and traversable directories (0755) in /tmp/strands/sessions. An unprivileged local user can read all persisted agent sessions, including conversation history, secrets, and intermediate state. This is a local information disclosure with no authentication required and is fixed in version 1.48.0.

Affected products

  • Strands strands-agents before 1.48.0

Timeline

  • 2026-10-27: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.