# CVE-2026-42866: Tookie: Arbitrary file write via path traversal in -u username / -U userfile output filename

- Severity: Medium 6.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-11T18:23:19.395Z
- Modified: 2026-10-26T18:10:00.173Z
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Alfredredbird tookie-osint: < 4.1fix

## References

- <https://github.com/Alfredredbird/tookie-osint/security/advisories/GHSA-rp68-wfv6-3cq3> (exploit)

## Sources

- CVE List: [CVE-2026-42866](https://www.cve.org/CVERecord?id=CVE-2026-42866), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-42866](https://nvd.nist.gov/vuln/detail/CVE-2026-42866), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42866 · Whole record: https://cve.day/CVE-2026-42866.json · Rebuilt by cve.day 2026-11-25T22:59:21.245Z
