strict-path
Prevent directory traversal with type-safe virtual path jails and safe symlinks
Security Foundation
Built on soft-canonicalize with protection against documented CVEs including CVE-2025-8088 (NTFS ADS attacks), CVE-2022-21658 (TOCTOU), Windows 8.3 short name vulnerabilities, and more. This isn't simple string comparison—paths are fully canonicalized and boundary-checked against real-world attack patterns.
Full Documentation
For complete documentation, examples, and API reference, see the repository README.
Quick Start
use Jail;
// Create a jail and validate any external path
let jail = try_new_create?;
let safe_path = jail.jailed_join?;
safe_path.write_string?; // Guaranteed safe
License
MIT OR Apache-2.0