GraphQL Query Length Not Limited

medium Web App Scanning Plugin ID 114867

Synopsis

GraphQL Query Length Not Limited

Description

GraphQL is an open-source query and manipulation language for APIs. When a GraphQL API does not enforce limits on query length or complexity, attackers can submit extremely large and complex queries that consume excessive server resources, potentially causing denial of service conditions.

Solution

Implement query length limitations, depth restrictions, and complexity analysis on all GraphQL endpoints to prevent resource exhaustion attacks.

See Also

https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html

Plugin Details

Severity: Medium

ID: 114867

Type: remote

Published: 6/4/2025

Updated: 6/4/2025

Scan Template: api, basic, full, pci, scan

Risk Information

VPR

Risk Factor: Low

Score: 1.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: Tenable

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS Score Source: Tenable

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

CVSS Score Source: Tenable

Reference Information