{"id":"CVE-2026-121691","kind":"vulnerability","aliases":["CVE-2026-121691"],"related":[],"title":"whatstk: crafted ZIP chat export exhausts memory and disk","description":"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 _str_from_file() (whatstk/whatsapp/parser.py) calls zip_ref.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. _clean_text() 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.from_source() and df_from_whatsapp(), 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.","summary":"whatstk's ZIP loader extracts a chat export without size or compression-ratio limits, so a small archive can fill memory and disk. An attacker who supplies a crafted WhatsApp export can crash or stall the process that parses it.","severity":"medium","cvss":6.7,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["package","python","whatstk"],"not_affected_if":["no-zip-input","trusted-input-only"],"how_to_check":"- Check the installed version with `pip show whatstk` and see whether it is below `0.9.0`.\n- Look for code that calls `WhatsAppChat.from_source()` or `df_from_whatsapp()` on uploaded or user-supplied ZIP files.","fix":"- `whatstk` `0.9.0` (the fix for affected versions from `0.7.0` before `0.9.0`, per the linked patch and release notes).","status":"open","published_at":"2026-11-10T18:17:20+00:00","first_seen_at":"2026-11-10T18:22:55+00:00","triaged_at":"2026-11-10T18:24:50+00:00","updated_at":"2026-11-10T18:24:50+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-10T18:24:50Z","model":"claude-haiku-5-5","output":{"fix":"- `whatstk` `0.9.0` (the fix for affected versions from `0.7.0` before `0.9.0`, per the linked patch and release notes).","reach":"unknown","title":"whatstk: crafted ZIP chat export exhausts memory and disk","impact":"medium","summary":"whatstk's ZIP loader extracts a chat export without size or compression-ratio limits, so a small archive can fill memory and disk. An attacker who supplies a crafted WhatsApp export can crash or stall the process that parses it.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","whatstk"],"confidence":0.7,"fix_status":"available","needs_auth":"no","worst_case":"Parsing process is killed after memory and disk exhaustion","analyst_note":"","how_to_check":"- Check the installed version with `pip show whatstk` and see whether it is below `0.9.0`.\n- Look for code that calls `WhatsAppChat.from_source()` or `df_from_whatsapp()` on uploaded or user-supplied ZIP files.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["trusted-input-only","no-zip-input"],"who_is_affected":"Applications that parse WhatsApp chat exports supplied by users or other outside parties through whatstk's ZIP loader are exposed. Services that only process local, trusted chat files, or that never accept ZIP input, can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"medium"},"cost_usd":0.000757,"input_tokens":4909,"output_tokens":533,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-121691':12A,15A '-2026':11A,14A '-409':66C '0.7.0':74C '0.9.0':76C 'allow':77C 'alreadi':154C 'archiv':37B,135C,209C 'attack':44B,237C 'avail':268C 'bound':107C 'build':183C 'call':103C 'chat':4A,25B,83C,232C 'check':116C 'clean':164C 'compress':31B,63C,119C 'compression-ratio':30B 'copi':179C 'cost':163C,248C 'count':136C 'craft':2A,48B 'crash':52B 'cve':10A,13A 'cwe':65C 'data':64C 'datafram':192C 'decompress':203C 'df':220C 'disk':9A,42B,91C,256C 'document':214C 'exact':146C 'exceed':265C 'exhaust':6A,86C 'export':5A,26B,50B,84C,230C 'express':188C 'extract':23B,124C,138C 'extractal':152C 'f.read':129C 'file':101C,125C,139C,241C 'fill':39B 'form':226C 'full':127C 'guard':132C 'handl':60C 'high':62C 'hold':176C 'hundr':249C 'improp':59C 'input':215C 'io':234C 'kill':262C 'limit':33B 'list':185C 'loader':22B,70C 'match':189C 'megabyt':251C 'member':113C 'memori':7A,40B,88C,197C,253C 'multipl':200C 'nfkd':173C 'one':147C 'packag':16B 'pars':58B,96C,182C 'parti':79C 'pass':167C 'peak':196C 'prevent':161C 'process':56B,94C,260C 'python':17B 'rais':141C 'rather':205C 'ratio':32B,120C 'read':122C 'regular':187C 'result':243C 'run':150C 'second':178C 'size':28B,110C 'small':36B,246C 'sourc':218C 'stall':54B 'str':99C 'suppli':46B,81C,238C 'text':165C,170C,174C,204C 'unicodedata.normalize':172C 'upload':247C 'whatsapp':49B,222C,229C 'whatsappchat.from':217C 'whatstk':1A,18B,19B,72C 'whatstk/whatsapp/parser.py':102C 'whole':169C,240C 'without':27B 'written':155C 'zip':3A,21B,69C,211C 'zip_ref.extractall':104C","nicknames":[],"mitigations":[],"who_affected":"Applications that parse WhatsApp chat exports supplied by users or other outside parties through whatstk's ZIP loader are exposed. Services that only process local, trusted chat files, or that never accept ZIP input, can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["medium","package","python","whatstk"],"campaign_type":null,"search_a":"'-121691':12A,15A '-2026':11A,14A 'chat':4A 'craft':2A 'cve':10A,13A 'disk':9A 'exhaust':6A 'export':5A 'memori':7A 'whatstk':1A 'zip':3A","search_b":"'archiv':37B 'attack':44B 'chat':25B 'compress':31B 'compression-ratio':30B 'craft':48B 'crash':52B 'disk':42B 'export':26B,50B 'extract':23B 'fill':39B 'limit':33B 'loader':22B 'memori':40B 'packag':16B 'pars':58B 'process':56B 'python':17B 'ratio':32B 'size':28B 'small':36B 'stall':54B 'suppli':46B 'whatsapp':49B 'whatstk':18B,19B 'without':27B 'zip':21B","search_c":"'-409':66C '0.7.0':74C '0.9.0':76C 'allow':77C 'alreadi':154C 'archiv':135C,209C 'attack':237C 'avail':268C 'bound':107C 'build':183C 'call':103C 'chat':83C,232C 'check':116C 'clean':164C 'compress':63C,119C 'copi':179C 'cost':163C,248C 'count':136C 'cwe':65C 'data':64C 'datafram':192C 'decompress':203C 'df':220C 'disk':91C,256C 'document':214C 'exact':146C 'exceed':265C 'exhaust':86C 'export':84C,230C 'express':188C 'extract':124C,138C 'extractal':152C 'f.read':129C 'file':101C,125C,139C,241C 'form':226C 'full':127C 'guard':132C 'handl':60C 'high':62C 'hold':176C 'hundr':249C 'improp':59C 'input':215C 'io':234C 'kill':262C 'list':185C 'loader':70C 'match':189C 'megabyt':251C 'member':113C 'memori':88C,197C,253C 'multipl':200C 'nfkd':173C 'one':147C 'pars':96C,182C 'parti':79C 'pass':167C 'peak':196C 'prevent':161C 'process':94C,260C 'rais':141C 'rather':205C 'ratio':120C 'read':122C 'regular':187C 'result':243C 'run':150C 'second':178C 'size':110C 'small':246C 'sourc':218C 'str':99C 'suppli':81C,238C 'text':165C,170C,174C,204C 'unicodedata.normalize':172C 'upload':247C 'whatsapp':222C,229C 'whatsappchat.from':217C 'whatstk':72C 'whatstk/whatsapp/parser.py':102C 'whole':169C,240C 'written':155C 'zip':69C,211C 'zip_ref.extractall':104C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-10T18:17:20+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"4daa8cea-433a-44bd-9456-53b127fc289a","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-121691","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121691","severity":null,"published_at":"2026-11-10T18:17:20+00:00","modified_at":"2026-11-10T18:17:20+00:00","first_seen_at":"2026-11-10T18:22:55+00:00","fetched_at":"2026-11-10T18:22:55+00:00","note":null}],"documents":[{"id":58866,"url":"https://github.com/lucasrodes/whatstk/commit/01d66d8","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":58867,"url":"https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}