CVE-2026-121577
Last modified
CVE-2026-121577 is a medium-severity vulnerability rated 6.7/10 on the CVSS scale. 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<day>\d{1,2})+(?P<month>\d{1,2})+(?P<year>\d{2,4}), and a run of digits that cannot complete the header then makes the engine try every way of partitioning that run.
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<day>\d{1,2})+(?P<month>\d{1,2})+(?P<year>\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. Separators of (, ) and \ instead raise re.PatternError, separators of *, | and ? raise TypeError, and separators of ^ and $ raise KeyError, none of which the library catches. This results in the parse of a file of a few hundred bytes consuming CPU without completing, or in an uncaught exception in the calling program.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| lucasrodes | whatstk | >= 0.2.0, < 0.9.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-121577?
How severe is CVE-2026-121577?
How do I fix CVE-2026-121577?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-121560LogChimp 0.9.0-alpha.1 before 0.9.3 contains an authorizatio…7.1
- CVE-2026-121561Label Studio before 1.23.2 (label-studio-sdk before 2.1.2) c…7.7
- CVE-2026-121562CTFd 3.1.0 before 3.8.7 contains an information disclosure v…5.3
- CVE-2026-121564Incomplete Comparison with Missing Factors (CWE-1023) in mer…1.8
- CVE-2026-121565Tanium addressed an improper certificate validation vulnerab…7.4
- CVE-2026-12157The BetterDocs - Knowledge Base Docs & FAQ Solution for Elem…6.4
- CVE-2026-121578Tactical RMM contains a stored XSS vulnerability caused by i…6.1
- CVE-2026-12158The RegistrationMagic – User Registration Forms Plugin plugi…8.8
- CVE-2026-121580Server-side request forgery in the Jira ticketing filter loo…
- CVE-2026-121581A vulnerability has been found in ArcReel 0.32.0/0.33.0/0.34…4.3
- CVE-2026-121582A vulnerability has been found in Umami up to 3.4.1. Impacte…6.5
- CVE-2026-121583A vulnerability was identified in Sanluan PublicCMS 5. This …6.3
Are you affected by CVE-2026-121577?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
