{"id":"GHSA-2hmf-46v7-v6fx","summary":"gqlparser denial of service vulnerability via the parserDirectives function","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.","aliases":["CVE-2023-49559","GO-2024-2920"],"modified":"2026-09-10T03:50:14.729633897Z","published":"2024-06-12T21:31:19Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-06-12T22:53:35Z","nvd_published_at":"2024-06-12T20:15:10Z","cwe_ids":["CWE-400","CWE-770"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49559"},{"type":"WEB","url":"https://github.com/99designs/gqlgen/issues/3118"},{"type":"WEB","url":"https://github.com/vektah/gqlparser/commit/36a3658873bf5a107f42488dfc392949cdd02977"},{"type":"WEB","url":"https://gist.github.com/uvzz/d3ed9d4532be16ec1040a2cf3dfec8d1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2hmf-46v7-v6fx"},{"type":"PACKAGE","url":"https://github.com/vektah/gqlparser"},{"type":"WEB","url":"https://github.com/vektah/gqlparser/blob/master/parser/query.go#L316"}],"affected":[{"package":{"name":"github.com/vektah/gqlparser/v2","ecosystem":"Go","purl":"pkg:golang/github.com/vektah/gqlparser/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.5.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-2hmf-46v7-v6fx/GHSA-2hmf-46v7-v6fx.json"}},{"package":{"name":"github.com/vektah/gqlparser","ecosystem":"Go","purl":"pkg:golang/github.com/vektah/gqlparser"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.5.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-2hmf-46v7-v6fx/GHSA-2hmf-46v7-v6fx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}