Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129226

 

Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129226

Published: November 16, 2026


Vulnerability identifier: #VU166233
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-129226
CWE-ID: CWE-674
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by terminating an affected operation or request worker.

The vulnerability exists due to uncontrolled recursion without depth or length bounds in Natural Language Toolkit's read_type semantic-logic type parser when parsing untrusted type strings or signature values. A remote attacker can supply a deeply nested type string such as "<" * n + "e,e" + ">" * n through Type.fromstring or expression type-checking signatures to trigger an unhandled RecursionError and disrupt processing.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-129226

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins