CVE-2026-142382
LowCVSS 2.1Exploitation Probability (EPSS)
Low risk39th percentile - higher than 39% of all known CVEs
Summary
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.
Risk Assessment
An attacker can control the content of sample chats parsed by the library, potentially injecting malicious data into the user's application. Although the served files are public samples, the organization loses input data integrity.
Recommendation
Upgrade whatstk to version 0.9.0 or later, which enforces HTTPS for sample URLs. Until then, avoid loading sample chats over untrusted networks.
Other vulnerabilities in whatstk
See all- 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.
- CVE-2026-121564Low
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.
Original NVD description (English source)
Cleartext Transmission of Sensitive Information (CWE-319) in whatstk/data.py in whatstk from 0.3.0 before 0.9.0 allows an attacker on the network path between the user and raw.githubusercontent.com to substitute the sample chat files the library downloads. The module builds chats_folder on the http scheme, and every entry of whatsapp_urls, which is the documented way to load a sample chat, inherits that prefix. _str_from_file() passes any path beginning with http to urlopen(), which follows GitHub's 301 redirect to HTTPS, but the first request has already travelled in cleartext on port 80, so an attacker who answers before the redirect supplies the file that is parsed. The scheme appears 15 times across 7 files of the affected releases: the sample URLs themselves, a docstring that renders in the API reference, the test suite, and four documentation pages that readers copy from. The project URL published to PyPI uses http as well. The files served are public sample chats, so what the attacker gains is control of the content the library parses rather than sight of anything confidential.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

