# CVE-2022-21708: Denial of Service in graphql-go

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.34%, higher than 72% of CVEs (2026-12-01)
- Published: 2022-01-21T22:25:10.000Z
- Modified: 2026-06-17T04:26:48.720Z
- Also known as: GHSA-mh3m-8c74-74xh, GO-2022-0300
- Weaknesses: CWE-400, CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- graph-gophers graphql-go: < 1.3.0
- github.com/graph-gophers/graphql-go (Go): before 1.3.0
- graphql-go_project graphql-go: before 1.3.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/graph-gophers/graphql-go/security/advisories/GHSA-mh3m-8c74-74xh> (third-party-advisory, web)
- <https://github.com/graph-gophers/graphql-go/commit/eae31ca73eb3473c544710955d1dbebc22605bfe> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21708> (advisory)
- <https://github.com/graph-gophers/graphql-go> (package)
- <https://pkg.go.dev/vuln/GO-2022-0300> (web)

## Sources

- CVE List: [CVE-2022-21708](https://www.cve.org/CVERecord?id=CVE-2022-21708), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-mh3m-8c74-74xh](https://github.com/advisories/GHSA-mh3m-8c74-74xh), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2022-0300](https://pkg.go.dev/vuln/GO-2022-0300), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-21708](https://nvd.nist.gov/vuln/detail/CVE-2022-21708), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21708 · Whole record: https://cve.day/CVE-2022-21708.json · Rebuilt by cve.day 2026-11-25T22:58:09.392Z
