GraphQL-core denial of service in validation error handling
graphql-python graphql-core
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| graphql-core PyPI |
|
|
Original description
GraphQL-core is a Python port of the GraphQL.js reference implementation. From 3.3.0a3 until 3.3.1, validate() reuses a module-level ValidationAbortedError when a document exceeds max_errors. Python appends frames to the reused exception's traceback on every raise, retaining each document, validation context, and error set for the process lifetime. An unauthenticated client can repeatedly submit a small document with more than 100 validation errors to cause unbounded memory growth before query execution, eventually exhausting worker memory without disclosing or modifying data. This issue is fixed in version 3.3.1.
From the CVE record · GitHub_M