cvelo
P4 · InfoCVSS 2.1EPSS 0.4%

Sample chat files are downloaded over cleartext HTTP in whatstk

  • CVE-2026-142382
  • GHSA-22xg-6h42-2j53
  • EUVD-2026-141742

Description

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.

Text from the CVE.org record.

Recommendation

  • lucasrodes whatstk

    • If you run a version from 0.3.0 to before 0.9.0update to 0.9.0 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • lucasrodes whatstk

    Affected versionsFixed in
    from 0.3.0 to before 0.9.00.9.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.