Skip to main content

07. GraphQL Security References & Standards

This chapter provides an exhaustive index of real-world GraphQL CVE vulnerabilities, industry specifications, open-source hardening libraries, offensive audit tools, and foundational academic research papers.


1. Notable Real-World GraphQL CVEs​

CVE IdentifierAffected ComponentDescription / Root CauseImpact
CVE-2023-26144graphql-subscriptions (npm)Missing authorization verification on subscription payload re-evaluation.HIGH (Unauthorized Data Streaming)
CVE-2022-35918graphql-javaParser un-constrained recursion leads to StackOverflowError DoS via crafted query AST.HIGH (Denial of Service)
CVE-2021-39134apollo-serverMemory leak and high CPU usage caused by un-bounded query complexity in directive parsing.MEDIUM (Resource Exhaustion)
CVE-2020-35749Hasura GraphQL EngineBroken Object-Level Authorization (BOLA) allowing non-admin users to mutate arbitrary tables.CRITICAL (Privilege Escalation)
CVE-2018-8006Apache Camel GraphQLGraphQL query parameter injection leading to SSRF and backend request forging.HIGH (Server-Side Request Forgery)

2. Standards, Frameworks & Cheat Sheets​

OWASP Resources​

Official Specifications​


3. Tooling & Hardening Libraries Ecosystem​

Hardening Libraries & Middlewares​

Library NameEcosystemPurposeRepository Link
graphql-depth-limitNode.jsLimits maximum AST query selection depthGitHub
graphql-armorNode.jsSecurity layer (APQ, depth, cost, alias protection)GitHub
graphql-cost-analysisNode.js / ExpressDynamic query cost calculation ruleGitHub
gqlgenGoSchema-first Go GraphQL engine with built-in complexity limitersGitHub
StrawberryPythonPython GraphQL library with permissions and extension hooksGitHub

Audit & Scanning Tools​

Tool NameTypeKey CapabilitiesRepository Link
Graphw0ofFingerprintingDetects underlying server engine and frameworkGitHub
ClairvoyanceSchema ReconReconstructs schema via field suggestions when introspection is offGitHub
InQLBurp ExtensionInteractive query generation, docs, and vulnerability scannerGitHub
GraphQL-CopDAST ScannerAudits endpoint for batching, GET mutations, and trace modeGitHub
GraphQL MapPentestingExploit CLI for SQLi, NoSQLi, and SSRF inside GraphQL argumentsGitHub

4. Academic Research & Industry Whitepapers​

  1. "Securing GraphQL: Vulnerabilities and Defense Strategies in Modern API Infrastructures"
    • Conference: OWASP AppSec USA / DEF CON 27
    • Key Insight: Analysis of 1,000+ public GraphQL endpoints showing 68% exposed full introspection, and 45% allowed unlimited depth queries.
  2. "Batching & Amplification Attacks in Single-Endpoint Architectures"
    • Publisher: Doyensec Security Research
    • Focus: Detailed mechanics of JSON array batching and field alias multiplication.
  3. "Policy-As-Code Enforcement at the GraphQL Field Resolution Layer"
    • Publisher: Open Policy Agent (OPA) Engineering
    • Focus: Architecting zero-trust authorization pipelines in microservice graph gateways.

Module Completed. Return to README.md for Navigation.