CVE-2026-142382: Sample chat files are downloaded over cleartext HTTP in whatstk

Published Dec 2, 2026
·
Updated

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

1 affected component
pypi/whatstk>=0.3.0<0.9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade whatstk to a version that resolves this vulnerability.

    Fixed in 0.9.0
  2. 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

Dec 2, 2026
CVE Published
via MITRE·05:45 PM
Data Sourced
via MITRE·05:45 PM
RemedyDescriptionWeakness
Data Sourced
via OSV·05:45 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:19 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203