Tookie · Tookie · CVE-2026-42866
**Name of the Vulnerable Software and Affected Versions**
Tookie versions prior to 4.1fix
**Description**
An issue exists in the `modules/modules.py` file where the `write txt()`, `write csv()`, `write json()`, and `scan file()` helper functions open output files using the `open(f"{user}.<ext>")` method. The `user` variable, which is sourced from the `-u` CLI flag or a `-U` usernames file, is not sanitized. A username containing path-separator sequences such as `..`, `/`, ``, or an absolute path allows the tool to write scan output to any arbitrary path where the invoking user has write permissions.
**Recommendations**
Update to version 4.1fix.