| Version | Supported |
|---|---|
| 0.1.x | ✅ |
If you discover a security vulnerability in path_file, please report it responsibly:
- Do not create a public issue
- Use GitHub private vulnerability reporting: https://github.com/Largo-m/path-file/security/advisories/new
- Include details about the vulnerability:
- Description of the issue
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
We will acknowledge receipt within 48 hours and provide a timeline for a fix.
path-file is designed with security in mind:
- Archive extraction validates all paths stay within destination directory
safe_path()utility prevents directory escape- Symlink resolution is controlled
- All destructive operations (delete, move, overwrite) require explicit confirmation
dry_run=Trueis default for safety- CLI requires
--confirmflag for actual deletion
- Size parsing validates format and ranges
- Duration parsing validates format
- Regex patterns are compiled with error handling
- TOML rules are parsed with validation
- No
eval()orexec()anywhere in the codebase - No dynamic code execution; the rules engine uses safe pattern matching only
run_command()usessubprocesswith an argument list (no shell involved)run_shell()is an explicit opt-in helper for users who need shell syntax (it passesshell=Trueby design and is documented accordingly); it is never used internally by path-file itself
- File operations respect OS permissions
- No privilege escalation
- Operations fail gracefully on permission errors
- Symlink cycles are detected but not automatically resolved on all platforms
- Windows recycle bin requires
send2trashpackage (fallback provided) - Very deep directory trees may hit recursion limits (iterative walker available)
path-file has zero runtime dependencies. Only Python standard library is used.
Development dependencies are pinned and regularly updated for security.