Rust advisories / juniper
Vulnerability HighRUSTSEC-2022-0038 · juniper
RUSTSEC-2022-0038: Denial of service on deeply nested fragment requests
Short answerA security vulnerability in the juniper crate: Denial of service on deeply nested fragment requests. High severity (CVSS 7.5). Fixed in 0.15.10: update to a fixed version.
| Crate | juniper |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.15.10. |
| Fixed in | 0.15.10 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2022-07-28 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2022-31173, GHSA-4rx6-g5vg-5f3j |
What to do
- See which version you have:
cargo tree -i juniper(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p juniper. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplejuniper = "0.15.10") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Deeply nested fragments in a GraphQL request may cause a stack overflow in the server.
References
- Package: crates.io/crates/juniper
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0038.html
- Web: github.com/graphql-rust/juniper/commit/2b609ee057be950e3454b69fadc431d120e407bb
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?