Advisory

GHSA-cw6x-m8jw-qmrh

Details, part 2 of 2. The advisory

Details

Suggested fix: Add a depth counter and a MAX_PARSE_DEPTH-style constant to FeatStructReader, mirroring the existing fix in nltk/sem/logic.py, and raise the library's normal ValueError-based parse error once the limit is exceeded instead of letting RecursionError propagate.

Sources & licences