Vulnerability RUSTSEC-2026-0416

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
2 days ago
October 28, 2026 at 12:00 PM UTC
Stack overflow on deeply nested GraphQL documents
0.5.0 - 0.17.1
0.5.0 - 0.17.1

Summary

Stack overflow on deeply nested GraphQL documents

Details

The parser of juniper called 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 followed 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. One request can thus stop a server and drop all other requests in progress. The request needs no authentication.

juniper 0.17.2 rejects documents that nest deeper than 64 levels or contain more than 15,000 tokens. RootNode::limit_depth() and RootNode::limit_tokens() change the limits.

Impacted packages

Timeline

Published
2 days ago
October 28, 2026 at 12:00 PM UTC
Fixed (0.17.2)
2 days ago
October 28, 2026 at 10:46 PM UTC
Last Modified
1 day ago
October 29, 2026 at 02:15 PM UTC