CVE-2026-129229: Natural Language Processing. From Resource Exhaustion
Published 2026-11-19 · Updated 2026-11-20 · Source security-advisories@github.com
Not known to be exploited · high severity — update Natural Language Processing. From to 3.10.4 or later in your next patch cycle.
What to do
- Update Natural Language Processing. From to version 3.10.4 or later. Versions from 3.10.0 up to, but not including, 3.10.4 are affected.
- Until it is patched, do not leave Natural Language Processing. From reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Apply rate limits and request-size limits in front of the affected service.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Natural Language Processing. From | ≥ 3.10.0, < 3.10.4 | 3.10.4 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: Resource Exhaustion
Description
NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.0 until 3.10.4, TokenSearcher.findall and Text.findall accept caller-controlled regular expressions with an unbounded number of capturing groups throughout the affected range. Starting in 3.10.3, nltk.redos.compile and RegexpTokenizer expose the same compile-time vector. The third-party regex engine compiles group-dense patterns with roughly quadratic cost before the match-time timeout begins, allowing a small unauthenticated request to exhaust CPU and deny service. This issue is fixed in version 3.10.4.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/nltk/nltk/commit/002bcf714ef8cb8baf94436f4be73e5516914412
- Patchhttps://github.com/nltk/nltk/pull/3895
- Patchhttps://github.com/nltk/nltk/releases/tag/v3.10.4
- Advisoryhttps://github.com/nltk/nltk/security/advisories/GHSA-32p6-cwhc-8r78
- Advisoryhttps://github.com/nltk/nltk/security/advisories/GHSA-32p6-cwhc-8r78