---
id: CVE-2023-49559
aliases:
  - GHSA-2hmf-46v7-v6fx
  - GO-2024-2920
title: gqlparser denial of service vulnerability via the parserDirectives function
summary: gqlparser denial of service vulnerability via the parserDirectives function
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
vendor: vektah
product: github.com/vektah/gqlparser/v2
ecosystem: go
affected:
  - github.com/vektah/gqlparser/v2 < 2.5.14
  - github.com/vektah/gqlparser < 2.5.14
patched:
  - github.com/vektah/gqlparser/v2 2.5.14
  - github.com/vektah/gqlparser 2.5.14
published: '2024-06-12'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:14.729633897Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-2hmf-46v7-v6fx'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-49559'
  - url: 'https://github.com/99designs/gqlgen/issues/3118'
  - url: >-
      https://github.com/vektah/gqlparser/commit/36a3658873bf5a107f42488dfc392949cdd02977
  - url: 'https://gist.github.com/uvzz/d3ed9d4532be16ec1040a2cf3dfec8d1'
  - url: 'https://github.com/advisories/GHSA-2hmf-46v7-v6fx'
  - url: 'https://github.com/vektah/gqlparser'
  - url: 'https://github.com/vektah/gqlparser/blob/master/parser/query.go#L316'
tags:
  - osv
  - go
epss: 0.00595
epssPercentile: 0.46164
ingestedAt: '2026-09-12T03:13:01.745Z'
---

## Overview

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.

## Affected packages

- `github.com/vektah/gqlparser/v2 < 2.5.14`
- `github.com/vektah/gqlparser < 2.5.14`

## Remediation

Upgrade to a patched release:

- `github.com/vektah/gqlparser/v2 2.5.14`
- `github.com/vektah/gqlparser 2.5.14`
