CVE-2026-121564
LowCVSS 1.8Exploitation Probability (EPSS)
Low risk29th percentile - higher than 29% of all known CVEs
Summary
The whatstk library from 0.3.0 before 0.9.0 contains an incomplete comparison vulnerability (CWE-1023) in merge_chats() (whatstk/utils/chat_merge.py), reached from BaseChat.merge(). The merge keeps whole the chat whose first message is oldest and appends from the other only messages strictly newer than the last message of the first, so messages of the second chat falling within the first's date range are silently discarded. The merged result is returned without a warning and without a count of what was removed.
Risk Assessment
The merged output may omit messages present in the inputs, which is especially dangerous in forensic review and training data generation. This may lead to incorrect conclusions or biased models.
Recommendation
Update whatstk to version 0.9.0 or later. Until updated, verify chat merge results for missing messages before using them in analyses.
Other vulnerabilities in whatstk
See all- CVE-2026-142382Low
whatstk library versions 0.3.0 through 0.9.0 download sample chat files over HTTP (http scheme), allowing an attacker on the network path to substitute the file content before the redirect to HTTPS. The _str_from_file() function passes http-prefixed paths to urlopen(), and the first request travels in cleartext on port 80.
- CVE-2026-141426Low
Incorrect Default Permissions (CWE-276) in gdrive_init() in whatstk 0.5.0 before 0.9.0 causes ~/.config/whatstk/gdrive, client_secrets.json, and settings.yaml to be created with umask-derived permissions (0755/0644 by default), allowing other local users to read the Google Drive OAuth client secret.
- CVE-2026-121691Medium
In whatstk from 0.7.0 before 0.9.0, the ZIP loader does not bound the size of extracted members or check the compression ratio. A party supplying a chat export can exhaust the memory and disk of the parsing process, causing it to be killed.
- CVE-2026-121577Medium
whatstk from 0.2.0 before 0.9.0 builds the header regular expression in generate_regex() without escaping format characters, so a date separator that is a regex metacharacter alters the pattern. A malicious chat export can cause unbounded CPU consumption during parsing or an uncaught exception in the calling program.
Original NVD description (English source)
Incomplete Comparison with Missing Factors (CWE-1023) in merge_chats() (whatstk/utils/chat_merge.py), reached from BaseChat.merge(), in whatstk from 0.3.0 before 0.9.0 allows a party that supplies the chat exports to cause messages to be absent from the merged output with no indication that anything was removed, because the merge keeps whole the chat whose first message is oldest and appends from the other only the messages that are strictly newer than the last message of the first. Every message of the second chat that falls inside the date range already covered by the first is therefore discarded. The two chats are compared on their date ranges and not on the identity of the individual messages, so a message held by only one of the two exports is dropped whenever its date falls inside the range of the other, and both branches of _merge_two_chats() behave this way. The merged result is returned without a warning and without a count of what was removed. This results in a merged chat that omits messages the inputs contain, in a library whose documented uses include forensic review and the generation of training data.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

