{"id":"CVE-2022-21708","published":"2022-01-21T22:25:10Z","modified":"2025-04-23T19:09:37Z","title":"Denial of Service in graphql-go","vendor":"graph-gophers","product":"graphql-go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01336,"percentile":0.71922,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/graph-gophers/graphql-go/security/advisories/GHSA-mh3m-8c74-74xh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/graph-gophers/graphql-go/commit/eae31ca73eb3473c544710955d1dbebc22605bfe","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":14.38},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"graph-gophers","affectedVersions":[{"vendor":"graph-gophers","product":"graphql-go","versions":["< 1.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:11:41.772789Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/graph-gophers/graphql-go","vulnerableRanges":["<1.3.0"],"patched":["1.3.0"],"from":["GHSA-mh3m-8c74-74xh","GO-2022-0300"],"provenance":"source"}],"summary":{"text":"The graphql-go library (product graphql-go, from graph-gophers) contains a flaw in its query handling that allows stack overflow panics, affecting versions prior to 1.3.0. An attacker who has access to the GraphQL handler and holds low-privilege authentication can send specially crafted queries over the network, without user interaction, to crash the server and degrade its ability to serve data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:06Z"},"euvd":{"id":"EUVD-2022-0647","exploited":false,"provenance":"source"}}