{"id":"CVE-2026-42866","summary":"Tookie: Arbitrary file write via path traversal in -u username / -U userfile output filename","details":"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}.\u003cext\u003e\"), 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.","aliases":["GHSA-rp68-wfv6-3cq3"],"modified":"2026-07-15T01:48:50.081046799Z","published":"2026-05-11T18:23:19.395Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42866.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-22","CWE-73"]},"references":[{"type":"ADVISORY","url":"https://github.com/Alfredredbird/tookie-osint/security/advisories/GHSA-rp68-wfv6-3cq3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42866.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42866"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/alfredredbird/tookie-osint","events":[{"introduced":"0"},{"fixed":"7d1ce017faa6a1fab21c83560382348814c2e181"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"fixed":"4.1fix"}]}}],"versions":["v4.1","v4","v2.8(c)","v2.8(b)","v2.8(a)","v2.7(a)","v2.5(a)","v2.1(e)Pre(2)","v2.1(d)","v2.1(c)","v2.1(b)","v2.0(d)","v2.0(c)","beta_v2.0(b)","v2.0(b)","v2.0(a)"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42866.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}