PyPI
CVE-2026-121577
Unescaped header separators in whatstk build a regular expression that backtracks exponentially
- Severity
- Medium 6.7
- Published
- 3 Nov 2026
- Last changed
- 6 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.9.0
- Exploit chance
- 0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Take it down
- 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- Sources
- CVE Program
Description
Inefficient Regular Expression Complexity (CWE-1333) in generate_regex() (whatstk/whatsapp/parser.py) in whatstk from 0.2.0 before 0.9.0 allows a party that supplies a chat export to consume the CPU of the process that parses it for an unbounded time, because the function builds the header regular expression by replacing each %x code with its named capture group and leaves every other character of the header format in the pattern unescaped. A header whose date separator is a regular expression metacharacter therefore alters the pattern instead of matching itself: a separator of + quantifies the preceding capture group, giving (?P\d{1,2})+(?P\d{1,2})+(?P\d{2,4}), and a run of digits that cannot complete the header then makes the engine try every way of partitioning that run. Header auto detection is enabled by default and derives the format from the text of the file, so the separator is taken from the export itself and no header format has to be passed by the caller.
Affected software
| Software | Affected versions |
|---|---|
whatstkPyPI · osv:PyPI:whatstk |
|
About whatstk
- Weekly downloads (PyPI)
- 137PyPI Stats, 24 Nov 2026
Vulnerabilities in whatstk
- In our list
- 3
- Published in the last 12 months
- 3
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-121691Unbounded decompression in the whatstk ZIP loader exhausts memory and diskMedium 6.7 10 Nov 2026
- CVE-2026-121564Silent loss of messages when merging overlapping chat exports in whatstkLow 1.8 3 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-121577