Go Vulnerability Database
GO-2022-0300
Panic via malicious inputs in github.com/graph-gophers/graphql-go
Details
Malicious inputs can cause a panic.
A maliciously crafted input can cause a stack overflow and panic. Any user with access to the GraphQL can send such a query.
This issue only occurs when using the graphql.MaxDepth schema option (which is highly recommended in most cases).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/graph-gophers/graphql-go | All versions before 1.3.0 (fixed in 1.3.0) |