MediumGHSA-2hmf-46v7-v6fxCVE-2023-49559GO-2024-2920
gqlparser denial of service vulnerability via the parserDirectives function
Published 12 Jun 2024 · Updated 10 Sept 2026
Is your project on an affected github.com/vektah/gqlparser/v2?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <2.5.14
- Fixed in
- 2.5.14
Update to the fixed version for your release line, for example:
go get github.com/vektah/gqlparser/v2@v2.5.14- Affected
- <2.5.14
- Fixed in
- 2.5.14
Update to the fixed version for your release line, for example:
go get github.com/vektah/gqlparser@v2.5.14Details
An issue in vektah gqlparser open-source-library v.2.5.10 allows a remote attacker to cause a denial of service via a crafted script to the parserDirectives function.
Is GHSA-2hmf-46v7-v6fx in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/vektah/gqlparser/v2, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-49559
- Linkgithub.com/99designs/gqlgen/issues/3118
- Linkgithub.com/vektah/gqlparser/commit/36a3658873bf5a107f42488dfc392949cdd02977
- Linkgist.github.com/uvzz/d3ed9d4532be16ec1040a2cf3dfec8d1
- Advisorygithub.com/advisories/GHSA-2hmf-46v7-v6fx
- Packagegithub.com/vektah/gqlparser
- Linkgithub.com/vektah/gqlparser/blob/master/parser/query.go#L316
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.