PyPI
GHSA-763v-5pjm-fx36
Strands Agents: Default FileSessionManager storage is world-readable on shared systems
- Severity
- Medium
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.48.0
- Sources
- OSV.dev and GitHub
Description
There is a local confidentiality issue in the default FileSessionManager storage behavior. By default it writes session data under /tmp/strands/sessions and relies on the process umask for directory and file permissions. On systems using the common umask 022, the session directories are 0755 and JSON files are 0644, so other local users can read persisted agent session data.
This matters on shared developer machines, CI hosts, notebooks, jump boxes, and multi-user GPU servers. Session storage is intended to persist conversation/history/state, so it can contain prompts, model output, tool inputs/outputs, intermediate state, and secrets that pass through the agent.
Relevant code:
- strands-py/src/strands/session/file_session_manager.py:58: default storage path is os.path.join(tempfile.gettempdir(), "strands/sessions").
- strands-py/src/strands/session/file_session_manager.py:118: creates parent directories without a private mode.
Affected software
| Software | Affected versions |
|---|---|
strands-agentsPyPI · osv:PyPI:strands-agents |
|
About strands-agents
- Weekly downloads (PyPI)
- 9,148,188PyPI Stats, 24 Nov 2026
Vulnerabilities in strands-agents
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- GHSA-3w55-933p-8pv5Strands Agents: Local Privilege Escalation via Symlink Attack in Default Session File StorageHigh 7.1 27 Oct 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-763v-5pjm-fx36