Denial of Service in graphql-go
Description
graphql-go is a GraphQL server with a focus on ease of use. In versions prior to 1.3.0 there exists a DoS vulnerability that is possible due to a bug in the library that would allow an attacker with specifically designed queries to cause stack overflow panics. Any user with access to the GraphQL handler can send these queries and cause stack overflows. This in turn could potentially compromise the ability of the server to serve data to its users. The issue has been patched in version v1.3.0. The only known workaround for this issue is to disable the graphql.MaxDepth option from your schema which is not recommended.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/graph-gophers/graphql-goGo | < 1.3.0 | 1.3.0 |
Affected products
2- graph-gophers/graphql-gov5Range: < 1.3.0
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-mh3m-8c74-74xhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-21708ghsaADVISORY
- github.com/graph-gophers/graphql-go/commit/eae31ca73eb3473c544710955d1dbebc22605bfeghsax_refsource_MISCWEB
- github.com/graph-gophers/graphql-go/security/advisories/GHSA-mh3m-8c74-74xhghsax_refsource_CONFIRMWEB
- pkg.go.dev/vuln/GO-2022-0300ghsaWEB
News mentions
0No linked articles in our index yet.