Intel

AIKIDO-2025-10222

graphql-query-complexity is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

55

Medium Risk

This Affects:

JSgraphql-query-complexity
0.1.0 - 1.0.0
Fixed in 1.1.0

TL;DR

Affected versions of this package do not limit the maximum number of query nodes, which may allow overly complex queries to consume excessive resources and potentially cause resource exhaustion. A new option introduces a safeguard by capping the number of query nodes per query, with a default limit of 10,000—sufficient for most typical use cases.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

graphql-query-complexity is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 1.0.0.

How to fix this

Upgrade the graphql-query-complexity library to the patch version.