Skip to content

fix: Fix uncontrolled recursion DoS in parser.py#468

Open
frostming wants to merge 1 commit intopython-poetry:masterfrom
spartan8806:fix/recursion-depth-limit
Open

fix: Fix uncontrolled recursion DoS in parser.py#468
frostming wants to merge 1 commit intopython-poetry:masterfrom
spartan8806:fix/recursion-depth-limit

Conversation

@frostming
Copy link
Copy Markdown
Contributor

Adds a configurable maximum nesting depth (default 100) to prevent RecursionError when parsing deeply nested arrays or inline tables. When the limit is exceeded, a ParseError is raised instead of allowing unbounded recursion that crashes the process.

Fixes #459

Adds a configurable maximum nesting depth (default 100) to prevent
RecursionError when parsing deeply nested arrays or inline tables.
When the limit is exceeded, a ParseError is raised instead of
allowing unbounded recursion that crashes the process.

Fixes python-poetry#459

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security: Uncontrolled Recursion DoS in parser.py (CWE-674)

2 participants