Live threats

All CVEs / Graphql-go Project

CVE-2022-21708Graphql-go Project Graphql-go

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.1%
probability of exploitation in 30 days · percentile 64
Auth required
Yes
Published
Jan 21, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-674
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Graphql-go.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/graph-gophers/graphql-go < 1.3.0 1.3.0 go get github.com/graph-gophers/graphql-go@v1.3.0
Go github.com/graph-gophers/graphql-go < 1.3.0 1.3.0 go get github.com/graph-gophers/graphql-go@v1.3.0

Per OSV / GitHub Advisories (GHSA-mh3m-8c74-74xh, GO-2022-0300). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
graphql-go_projectgraphql-go< 1.3.0

Official sources

References

Links published by the sources. Open them with care.