CVE-2026-121691: Unbounded decompression in the whatstk ZIP loader exhausts memory and disk

Published Nov 10, 2026
·
Updated

Improper Handling of Highly Compressed Data (CWE-409) in the ZIP loader of whatstk from 0.7.0 before 0.9.0 allows a party that supplies a chat export to exhaust the memory and the disk of the process that parses it, because strfromfile() (whatstk/whatsapp/parser.py) calls zipref.extractall() with no bound on the size of the members and no check of the compression ratio, then reads the extracted file in full with f.read(). The only guard on the archive counts the extracted files and raises when there is not exactly one, but it runs after extractall() has already written them, so it does not prevent the cost. cleantext() then passes the whole text through unicodedata.normalize("NFKD", text), which holds a second copy, and the parse builds a list of regular expression matches and a DataFrame over it, so peak memory is a multiple of the decompressed text rather than of the archive. A ZIP is a documented input of WhatsAppChat.fromsource() and dffromwhatsapp(), and is the form in which WhatsApp exports a chat on iOS, so the attacker supplies the whole file. This results in a small upload costing hundreds of megabytes of memory and of disk, and in the process being killed where that exceeds what is available.

Affected Software

1 affected component
pypi/whatstk>=0.7.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. Configuration

    Set the max_size argument to a value lower than the default 50 MB limit when parsing ZIP chat exports.

    whatstk ZIP loader max_size = lower than 50 MB

Event History

Nov 10, 2026
CVE Published
via MITRE·05:29 PM
Data Sourced
via MITRE·05:29 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

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