Incorrect Default Permissions Affecting strands-agents package, versions [,1.48.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Default Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-STRANDSAGENTS-21756827
  • published27 Oct 2026
  • disclosed27 Oct 2026
  • creditwhyiug

Introduced: 27 Oct 2026

CVE NOT AVAILABLE CWE-276  (opens in a new tab)

How to fix?

Upgrade strands-agents to version 1.48.0 or higher.

Overview

strands-agents is an A model-driven approach to building AI agents in just a few lines of code

Affected versions of this package are vulnerable to Incorrect Default Permissions via FileSessionManager in strands/session/file_session_manager.py, where the _read_file and _write_file methods do not check whether the target path is a symbolic link before performing file operations. A local attacker who can place a symlink at a session file path can redirect reads or writes to arbitrary files accessible by the victim process, enabling disclosure of sensitive file contents. The default storage directory was also placed in the world-writable /tmp, increasing exposure to symlink-planting attacks.

CVSS Base Scores

version 4.0
version 3.1