Go Vulnerability Database
GO-2024-2920
Denial of service vulnerability via the parseDirectives function in github.com/vektah/gqlparser
Details
An issue in vektah gqlparser open-source-library allows a remote attacker to cause a denial of service via a crafted script to the parseDirectives function.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/vektah/gqlparser | All versions, no fix listed |
| Go | github.com/vektah/gqlparser/v2 | All versions before 2.5.14 (fixed in 2.5.14) |
References
- https://github.com/advisories/GHSA-2hmf-46v7-v6fx
- https://github.com/vektah/gqlparser/commit/36a3658873bf5a107f42488dfc392949cdd02977
- https://gist.github.com/uvzz/d3ed9d4532be16ec1040a2cf3dfec8d1
- https://github.com/99designs/gqlgen/issues/3118
- https://github.com/vektah/gqlparser/blob/master/parser/query.go#L316