Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade @escape.tech/graphql-armor-max-depth
to version 2.4.2 or higher.
@escape.tech/graphql-armor-max-depth is a Limit the depth allowed in a GraphQL query.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the countDepth
function when the ignoreIntrospection
configuration is enabled. An attacker can bypass query depth restrictions by crafting queries or fragments named __schema
, allowing them to submit deeply nested queries that would otherwise be blocked.
query {
books {
author {
books {
author {
...__schema
}
}
}
}
}
fragment __schema on Author {
books {
title
}
}