GO-2022-0300

Source
https://pkg.go.dev/vuln/GO-2022-0300
Import Source
https://vuln.go.dev/ID/GO-2022-0300.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2022-0300
Aliases
Published
2022-07-15T23:10:20Z
Modified
2024-05-20T16:03:47Z
Summary
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).

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2022-0300"
}
References

Affected packages

Go / github.com/graph-gophers/graphql-go

Package

Name
github.com/graph-gophers/graphql-go
View open source insights on deps.dev
Purl
pkg:golang/github.com/graph-gophers/graphql-go

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/graph-gophers/graphql-go",
            "symbols": [
                "Schema.Exec",
                "Schema.Subscribe",
                "Schema.ToJSON",
                "Schema.Validate",
                "Schema.ValidateWithVariables",
                "Schema.exec",
                "Schema.subscribe"
            ]
        }
    ]
}