CVE-2026-142382: Sample chat files are downloaded over cleartext HTTP in whatstk
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 chatsfolder on the http scheme, and every entry of whatsappurls, which is the documented way to load a sample chat, inherits that prefix. strfromfile() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
whatstkto a version that resolves this vulnerability.Fixed in 0.9.0 - Compensating control
On affected releases, pass an HTTPS URL for the sample chat file directly to the loader instead of using the whatsapp_urls entry.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of whatstk versions from 0.3.0 before 0.9.0 are exposed when they load sample chats using the documented sample URLs. An attacker must be able to interfere with network traffic between the user and raw.githubusercontent.com.
What does an attacker need to do to exploit it?
The attacker must respond to the initial cleartext HTTP request before GitHub's redirect to HTTPS is followed. They can then substitute a file that whatstk parses as a sample chat.
Are confidential chat contents exposed?
No. The affected downloads are public sample chat files, so the issue gives an on-path attacker control over parsed sample content rather than access to confidential information.
How can I tell whether my installation is affected?
Installations running whatstk 0.3.0 through versions earlier than 0.9.0 are affected. Usage is relevant if the application loads sample chats from the documented URLs or otherwise passes HTTP paths to the affected file-loading behavior.
What should I do if I cannot upgrade immediately?
Avoid loading sample chats from HTTP URLs and use locally obtained, trusted sample files instead. Do not rely on the GitHub HTTPS redirect, because the initial request is made over cleartext HTTP.