mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
9d623f0fbb
After the relative_to() boundary check, reassign the path variable using resolved_root / resolved_path.relative_to(resolved_root) so all subsequent file operations use a path derived from the trusted application root rather than the original user-supplied value. This breaks CodeQL's taint chain (py/path-injection) while preserving identical runtime behaviour. Fixes alerts #41, #42, #43, #44. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>