GHSA-pfrg-qg4f-grmv: Unbounded memory use on large request bodies
The graphql() and graphqlsync() functions of juniperhyper read the whole body of a POST request into memory before they parsed the body. The functions had no limit on the size of the body. A client could thus send a large body and exhaust the memory of the server. The request needs no authentication.
juniperhyper 0.10.1 reads at most 2 MiB of a request body by default. The functions respond with 413 Payload Too Large to larger bodies. A juniperhyper::BodyLimit in the extensions of a request changes the limit for the request.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/juniper_hyperto a version that resolves this vulnerability.Fixed in 0.10.1