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

Status: published. Published: 2026-12-02. Updated: 2026-12-02.

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.

## Remediation

- fix: Upgrade to whatstk 0.9.0 or later, where every sample chat URL uses the https scheme. On an affected release, passing an https URL of the same file to the loader instead of the whatsapp_urls entry avoids the cleartext request, since the loader accepts any URL. (source: CNA: Secur0)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Secur0) — https://github.com/lucasrodes/whatstk/pull/184
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Secur0) — https://github.com/lucasrodes/whatstk/commit/01d66d8

## Affected products and versions

- lucasrodes / whatstk (whatstk): ≥ 0.3.0; < 0.9.0 (affected, semver). Source: CNA: Secur0

## Severity and prioritization

- CVSS 4.0: 2.1 (low); CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N; source: CNA: Secur0

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-319

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/lucasrodes/whatstk/pull/184 (CNA: Secur0; patch)

- https://github.com/lucasrodes/whatstk/commit/01d66d8 (CNA: Secur0; patch)

- https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0 (CNA: Secur0; release-notes)

- https://secur0.com/en/cna/cve-list/cve-2026-142382-whatstk-cleartext-sample-chat-urls (CNA: Secur0; third-party-advisory, technical-description)

## Provenance

- CNA: Secur0: https://www.cve.org/CVERecord?id=CVE-2026-142382; retrieved 2026-12-02; source updated 2026-12-02

Revision: c91f9b9b27aac0691c1db7d5f82e1db3b8ef62e3dd0c9c16b50010a0c9baa83a

Canonical: https://y2.dev/cve/CVE-2026-142382

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.