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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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.14

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.