Intel

AIKIDO-2025-10301

@escape.tech/graphql-armor-cost-limit is vulnerable to Unlimited Resource Consumption

Unlimited Resource ConsumptionGHSA-733v-p3h5-qpq7 Published May 9, 2025

65

Medium Risk

This Affects:

JS@escape.tech/graphql-armor-cost-limit
1.0.0 - 2.4.1
Fixed in 2.4.2
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to allocation of resources without proper limits or throttling. The computeComplexity function performs insufficient validation when the ignoreIntrospection option—enabled by default—is used. This allows an attacker to bypass query cost restrictions by naming a query or fragment using __schema, potentially leading to resource exhaustion.

Who does this affect?

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

Background info

@escape.tech/graphql-armor-cost-limit is vulnerable to Unlimited Resource Consumption in versions 1.0.0 - 2.4.1.

How to fix this

Upgrade the @escape.tech/graphql-armor-cost-limit library to the patch version or set the ignoreIntrospection option to false.