VYPR
Low severity3.7NVD Advisory· Published Jun 12, 2024· Updated Apr 15, 2026

CVE-2023-49559

CVE-2023-49559

Description

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

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/vektah/gqlparser/v2Go
< 2.5.142.5.14
github.com/vektah/gqlparserGo
< 2.5.142.5.14

Patches

1
36a3658873bf

Add ParseQueryWithLimit (#304)

https://github.com/vektah/gqlparserSteve CoffmanJun 12, 2024via ghsa
1 file changed · +9 1
  • parser/query.go+9 1 modified
    @@ -9,7 +9,15 @@ import (
     func ParseQuery(source *Source) (*QueryDocument, error) {
     	p := parser{
     		lexer:         lexer.New(source),
    -		maxTokenLimit: 0, // 0 is the default value
    +		maxTokenLimit: 0, // 0 means unlimited
    +	}
    +	return p.parseQueryDocument(), p.err
    +}
    +
    +func ParseQueryWithTokenLimit(source *Source, maxTokenLimit int) (*QueryDocument, error) {
    +	p := parser{
    +		lexer:         lexer.New(source),
    +		maxTokenLimit: maxTokenLimit,
     	}
     	return p.parseQueryDocument(), p.err
     }
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.