CVE-2026-129226: NLTK: Uncontrolled recursion in semantic-logic type parser causes denial of service via nested type strings

Published Nov 19, 2026
·
Updated

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, the semantic-logic readtype parser recursively processes both halves of nested complex type strings without applying LogicParser.MAXPARSEDEPTH. An attacker-controlled type string or signature with excessive nesting can raise RecursionError through Type.fromstring or type-checking entry points and abort the current worker. This issue is fixed in version 3.10.4.

Affected Software

1 affected component
pypi/nltk<3.10.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.10.4

Event History

Nov 19, 2026
CVE Published
via MITRE·05:30 PM
Data Sourced
via MITRE·05:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed?

Applications using NLTK versions prior to 3.10.4 are exposed when attacker-controlled type strings or signatures can reach Type.fromstring or type-checking entry points.

2

What does an attacker need to supply?

The attacker needs to provide a type string or signature with excessive nested complex types. Exploitation does not require privileges or user interaction according to the supplied vector.

3

What is the operational impact of successful exploitation?

Processing the nested input can raise RecursionError and abort the current worker. The reported impact is denial of service rather than confidentiality or integrity loss.

4

How can this be remediated?

Update NLTK to version 3.10.4, which fixes the missing parse-depth handling.

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