CVE-2026-42866: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Alfredredbird tookie-osint
Tookie is a advanced OSINT information gathering tool. Prior to 4.1fix, modules/modules.py's write_txt, write_csv, write_json, and (commented-but-shipping) scan_file helpers open their output as open(f"{user}.<ext>"), where user comes unsanitized from the -u CLI flag or any line of a -U usernames file. A username that contains path-separator sequences (.., /, \, or an absolute path) causes tookie-osint to write the scan output to an arbitrary path the invoking user has write permission for. This vulnerability is fixed in 4.1fix.
AI Analysis
Technical Summary
The vulnerability in tookie-osint versions before 4.1fix involves improper limitation of pathname to a restricted directory (CWE-22). Specifically, the write_txt, write_csv, write_json, and scan_file helper functions open output files using a filename derived directly from unsanitized user input (the -u CLI flag or usernames file). This allows path traversal sequences such as '..', '/', or '\' to influence the output path, enabling writing files outside the intended directory to any location writable by the user. This issue is fixed in version 4.1fix.
Potential Impact
An attacker who can control the username input can cause tookie-osint to write output files to arbitrary paths on the filesystem where the invoking user has write permissions. This could lead to overwriting or creating files in unintended locations, potentially enabling privilege escalation or data manipulation depending on the environment and user privileges. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade tookie-osint to version 4.1fix or later, where this path traversal vulnerability has been fixed. Until upgrading, avoid running the tool with untrusted or unsanitized username inputs that contain path traversal characters. Patch status is not explicitly confirmed beyond the mention of the fix in 4.1fix; verify with the vendor for official advisories and updates.
CVE-2026-42866: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Alfredredbird tookie-osint
Description
Tookie is a advanced OSINT information gathering tool. Prior to 4.1fix, modules/modules.py's write_txt, write_csv, write_json, and (commented-but-shipping) scan_file helpers open their output as open(f"{user}.<ext>"), where user comes unsanitized from the -u CLI flag or any line of a -U usernames file. A username that contains path-separator sequences (.., /, \, or an absolute path) causes tookie-osint to write the scan output to an arbitrary path the invoking user has write permission for. This vulnerability is fixed in 4.1fix.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in tookie-osint versions before 4.1fix involves improper limitation of pathname to a restricted directory (CWE-22). Specifically, the write_txt, write_csv, write_json, and scan_file helper functions open output files using a filename derived directly from unsanitized user input (the -u CLI flag or usernames file). This allows path traversal sequences such as '..', '/', or '\' to influence the output path, enabling writing files outside the intended directory to any location writable by the user. This issue is fixed in version 4.1fix.
Potential Impact
An attacker who can control the username input can cause tookie-osint to write output files to arbitrary paths on the filesystem where the invoking user has write permissions. This could lead to overwriting or creating files in unintended locations, potentially enabling privilege escalation or data manipulation depending on the environment and user privileges. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade tookie-osint to version 4.1fix or later, where this path traversal vulnerability has been fixed. Until upgrading, avoid running the tool with untrusted or unsanitized username inputs that contain path traversal characters. Patch status is not explicitly confirmed beyond the mention of the fix in 4.1fix; verify with the vendor for official advisories and updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-30T18:49:06.710Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a022c3bcbff5d86104f7da7
Added to database: 5/11/2026, 7:21:31 PM
Last enriched: 5/11/2026, 7:37:33 PM
Last updated: 5/12/2026, 3:48:24 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.