strands-agents is vulnerable to Path Traversal
85
High Risk
Affected versions of this package are vulnerable to Directory Traversal due to insufficient sanitization of the session_id and agent_id parameters in the FileSessionManager._get_session_path(), FileSessionManager._get_agent_path(), S3SessionManager._get_session_path(), and S3SessionManager._get_agent_path() functions. Attackers can exploit this by providing crafted identifiers that manipulate file paths, potentially bypassing authentication and gaining unauthorized access to files in restricted directories.
You are affected if you are using a version that falls within the vulnerable range.
strands-agents is vulnerable to Path Traversal in versions 1.0.0 - 1.4.0.
Upgrade the strands-agents library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant