CVE-2022-21708Graphql-go Project Graphql-go
Medium 6.5
Follow: this CVE · Graphql-go Project · Graphql-go Project Graphql-go We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Graphql-go.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| graphql-go_project | graphql-go | < 1.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory