tao-data-io
Warn
Audited by Socket on Sep 17, 2026
1 alert found:
SecuritySecurityreferences/selective_download.py
MEDIUMSecurityMEDIUM
references/selective_download.py
The code is a readable S3 selective downloader and does not show indicators of malicious intent. It contains a meaningful path traversal risk because annotation-controlled relative paths can escape the destination directory via '..' components, potentially overwriting or creating files outside the intended staging area. It should validate that each resolved local path remains under dest_root, reject absolute paths and traversal components, and consider symlink-safe file handling. The S3 endpoint should also be trusted because it can redirect requests and expose credentials or downloaded data.
Confidence: 98%Severity: 70%
Audit Metadata