{"cve":"CVE-2022-21708","nvd":{"published":"2022-01-21T23:15:08.457","modified":"2026-06-17T04:26:48.720","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-674","CWE-400"],"references":["https://github.com/graph-gophers/graphql-go/commit/eae31ca73eb3473c544710955d1dbebc22605bfe","https://github.com/graph-gophers/graphql-go/security/advisories/GHSA-mh3m-8c74-74xh","https://github.com/graph-gophers/graphql-go/commit/eae31ca73eb3473c544710955d1dbebc22605bfe","https://github.com/graph-gophers/graphql-go/security/advisories/GHSA-mh3m-8c74-74xh"],"products":["graphql-go_project:graphql-go"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-21708","score":0.01243,"percentile":0.69226,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mh3m-8c74-74xh","url":"https://osv.dev/vulnerability/GHSA-mh3m-8c74-74xh","summary":"Denial of Service in graphql-go","modified":"2023-11-08T04:08:08.987087Z","packages":[{"ecosystem":"Go","name":"github.com/graph-gophers/graphql-go","purl":"pkg:golang/github.com/graph-gophers/graphql-go","ranges":["<1.3.0"],"fixed":["1.3.0"]}]},{"id":"GO-2022-0300","url":"https://osv.dev/vulnerability/GO-2022-0300","summary":"Panic via malicious inputs in github.com/graph-gophers/graphql-go","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/graph-gophers/graphql-go","purl":"pkg:golang/github.com/graph-gophers/graphql-go","ranges":["<1.3.0"],"fixed":["1.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}