ADVISORIES

Vulnerability

CVE-2022-21708

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.

4 advisories report this vulnerability, across 3 ecosystems.

Medium severity All Go 2Debian 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2022-21708

    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…

    CVE-2022-21708 Debian Updated 20 November 2026
  • GHSA-mh3m-8c74-74xh

    Denial of Service in graphql-go

    Moderate CVE-2022-21708 Go Updated 8 November 2023
  • GO-2022-0300

    Panic via malicious inputs in github.com/graph-gophers/graphql-go

    CVE-2022-21708 Go Updated 20 May 2024
  • UBUNTU-CVE-2022-21708

    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…

    CVE-2022-21708 Ubuntu Updated 24 October 2025

References