VDB
Sign up
—

GO-2022-0300

Panic via malicious inputs in github.com/graph-gophers/graphql-go

Quick fix

GO-2022-0300 — github.com/graph-gophers/graphql-go: upgrade to the fixed version with the command below.

go get github.com/graph-gophers/graphql-go@v1.3.0

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).

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/graph-gophers/graphql-go
Introduced in: 0Fixed in: 1.3.0
Fixgo get github.com/graph-gophers/graphql-go@v1.3.0

References