Vulnerability DatabaseGHSA-34cw-x8g7-rcv5

GHSA-34cw-x8g7-rcv5: 
Rust vulnerability analysis and mitigation

Impact

The parser of juniper calls itself once for each level of nesting in a GraphQL document. The parser had no limit on the nesting depth. Deeply nested selection sets, input values, and list types thus overflowed the stack of the thread that parsed the document. Validation and execution follow fragment spreads in the same recursive way. Long chains of fragment spreads thus overflowed the stack in validation and execution. A stack overflow aborts the whole process. std::panic::catch_unwind() cannot catch the abort. One request can thus stop a server and drop all other requests in progress. The request needs no authentication. A document of about 11 KB overflows the 8 MiB stack of the main thread on Linux. Threads with smaller stacks overflow on smaller documents.

Patches

juniper 0.17.2 rejects documents that nest deeper than 64 levels. Each selection set, list value, object value, and list type adds a level. The selection set of a fragment counts at the depth of each spread of the fragment. The parser reports a document over the limit with ParseError::DepthLimitExceeded. RootNode::limit_depth() changes the limit. juniper 0.17.2 also rejects documents with more than 15,000 tokens. RootNode::limit_tokens() changes the token limit.

Workarounds

No reliable workaround exists for earlier versions. A small limit on the size of request bodies makes the attack harder. Such a limit also rejects large legitimate documents.

References


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-fj3h-2jc3-973vHIGH7.5
  • Rust logoRust
  • juniper_warp
NoYesOct 29, 2026
RUSTSEC-2026-0419HIGH7.5
  • Rust logoRust
  • juniper_warp
NoYesOct 29, 2026
GHSA-pfrg-qg4f-grmvHIGH7.5
  • Rust logoRust
  • juniper_hyper
NoYesOct 28, 2026
GHSA-36rq-8957-mjrxHIGH7.5
  • Rust logoRust
  • juniper
NoYesOct 28, 2026
GHSA-34cw-x8g7-rcv5HIGH7.5
  • Rust logoRust
  • juniper
NoYesOct 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management