GraphQL Authorization Flaws
Access-control failures specific to GraphQL’s shape: the check lives on one resolver path, not on the object, so the same data or action stays reachable through another field, edge, interface, aggregate, mutation payload or library-level directive bug.
How it works
GraphQL has no per-URL boundary to hang authorization on, and the spec defines none. Every field is a resolver, and an object is typically reachable many ways:
Query.invoice(id) -> Invoice
Query.node(id) -> Node (via Node) # Relay global object ID
Query.search(term) -> SearchResult (via union)
User.invoices(first) -> Invoice # reachable from any User, e.g. invoice.owner
SendInvoicePayload.invoice -> Invoice # mutation payloads are read paths tooA check written into invoice(id:) has to be copied into every other entry point; when copies drift, data depends on path. Relay IDs are not secrets: graphql-relay-js toGlobalId is base64 of Type:id, so SW52b2ljZToxMDQy is Invoice:1042.
Failure taxonomy
| Pattern | Example |
|---|---|
| Root-only enforcement, no check on traversal | Nautobot GHSA-mfwj-pjgx-22v2: view_location users pulled Device fields through a Location query (fixed v2.4.38 / v3.2.0) |
| Alternate entry point | node(id:), search unions, aggregates, prev/next siblings |
| Field-level / argument-level gap | revokeScope(userId:) checked same-org targets only; cross-org it never ran (tenant permission tampering) |
| Trusting identity from arguments | Praetorian: brassCheckAccess(username, role) returned is_authorized for whatever username the client sent → swap in an admin’s |
| Authenticated ≠ authorized mutations | Lab setRole checked login, not admin; Snapchat deleteStorySnaps(ids:) deleted anyone’s Spotlight content ($15,000, H1 #1819832) |
| Missing authentication on critical mutation | Prime CMS CVE-2026-129941: createUser on /prime/graphql with isAuthenticated() commented out and admin roles hard-coded in createAbility() |
| Scope/schema boundary bypass | Craft CMS GHSA-xpg7-m6gm-4xfh (<5.11.2): anonymous client hops prev/next from one in-scope entry into sections withheld from the public schema, reading full custom-field content |
| Shared cache ignoring identity | Kong graphql-proxy-cache-advanced CVE-2026-92442: cache key omits caller identity, one user’s response served to another |
| Batched-context confusion | Hive Gateway batch-execute authz bypass (see GraphQL Batching Attacks) |
Library and directive bugs
Declarative authz moves the bug into the framework — worth fingerprinting the engine (graphw00f) and checking versions:
- graphql-ruby GHSL-2026-152 — in
Execution::Next,Schema::Resolver#callrescuedGraphQL::UnauthorizedErrorfromauthorized?and setis_authed = true, soresolveran and returned data / executed mutations (fixed 2.6.6). Related: GHSA-q3cc-p5hm-55wj (legacy interpreter rendered the original object whenSchema.unauthorized_objecthandled the error), GHSA-4rw8-495r-pf6j (Execution::Next, fixed 2.6.14), and class-level.authorized?skipped on resolvers/mutations. - @neo4j/graphql — multi-condition
@authenticationJWT filters in generic syntax evaluated only the first condition (CVE-2026-92683, fixed 7.6.7; workaround explicitANDarray orroles_INCLUDES); field-level@authenticationsilently dropped when a type-level rule exists (fixed 7.6.0 / 5.12.15);@authenticationnot enforced on top-level@cypherfields; aggregation queries bypass@authentication(CVE-2026-92684, fixed 7.6.8 / 5.12.17). Subscription transport bug in GraphQL Subscription Security. - Drupal graphql_core_schema CVE-2026-126725 (SA-CONTRIB-2026-316) — with the User Login extension enabled, anyone able to view an account could change its password, admins included (fixed 1.0.29).
Testing
- Get the schema (GraphQL Introspection) and list every path to each sensitive type: graphql-path-enum, or a short script over
possibleTypesof interfaces/unions plus mutation payload types. - Build an authorization matrix with two tenants and two roles; test each path, each field, each mutation argument that names a principal or object.
- Use aliases to fire all paths for one object in one request, so the response shows which resolver leaks.
- Read
data, not the status code: GraphQL errors ride in HTTP 200, and denied fields returnnullalongside errors. - Automate replay: GraphQLer’s dual-profile chain replay for IDOR; Autorize-style tooling via Authorization Testing Automation.
- Check aggregates, counts, connection filters and ordering as oracles (WPGraphQL ≤2.26.0 comment filters leaked commenter emails/IPs and existence of drafts).
Notable cases
- FinTech platform (Salt Labs) —
/BFF/graphql/mutation/doPaymentaccepted a victim UID → unauthorized transfers;receiptUrlreturned an unauthenticated third-party PDF link exposing PII. - Airline booking API — predictable integer IDs and no backend checks allowed mass read/modify of passenger PII and itineraries.
- Mass ATO, 29,000 accounts —
tokenForgotPasswordsreturned reset tokens with no authz. - GitLab CVE-2021-4191 — unauthenticated user enumeration over
/api/graphql. - WPGraphQL — Author/Contributor IDOR reading sensitive data.
- erxes
insurance_apiCVE-2026-134826 — the contract-template mutation resolvers (template.ts) had no authentication, so anonymous callers could create, overwrite or delete templates. Because headless Chromium rendered those templates ingenerateContractPDF, injected HTML pulled internal-network content and customer fields into the generated PDFs. Fixed in 3.4.14 (GHSA-m22g-6wm2-c3qq; SSRF in PDF and HTML Renderers). - Bolt CVE-2026-77379 — the public Relation API, exposed over both REST and GraphQL, lacked the access-control filter, so unauthenticated users discovered metadata of unpublished, draft and viewless content. Fixed in 6.1.4 (GHSA-6358-jg5p-hmjj).
- ArcadeDB CVE-2026-134327 — per-type ACLs applied to data but not to schema listings, so introspection exposed denied types’ properties, indexes, inheritance and materialized-view SQL (GHSA-jgxr-49x4-68p8; GraphQL Introspection).
- Generic
user(id:)BOLA — a single query returning profile, orders and payment metadata for any ID. The fix belongs in every resolver that accepts an ID, or in field-level middleware such as graphql-shield, not at the endpoint (securityelites).
Defenses
- Put authorization in the business/data layer that every resolver calls, not in individual resolvers (graphql.org guidance); then edges,
node, aggregates and payloads inherit it. - Never derive identity from arguments; take it from the verified context (Apollo: populate
contextValuefrom the token, enforce schema-wide in context and field-level in resolvers; GraphOS@authenticated/@requiresScopes). - Removing
node/nodesshrinks surface but is not authorization. - Cache keys must include principal; regression-test each directive combination you rely on.
Related
- GraphQL Security
- Broken Access Control
- BOLA in APIs
- Insecure Direct Object Reference
- Function Level Authorization
- Multi-Tenant Isolation
- Authorization Testing Automation
- GraphQL Introspection
Sources
- GraphQL BOLA: one object, many paths, and how to prove the gap · original
- Nautobot object view permissions bypass via GraphQL traversal · original
- Allowed to view the Location, handed the Device: a GraphQL permission gap in Nautobot… · original
- GHSL-2026-152: privilege escalation via authorization bypass in graphql-ruby · original
- graphql-ruby renders results from objects whose authorized? checks failed · original
- graphql-ruby Execution::Next renders objects whose authorized check failed · original
- graphql-ruby: Execution::Next skips class-level authorized? on resolvers/mutations · original
- @neo4j/graphql: only the first condition of a multi-condition @authentication JWT filter is evaluated · original
- @neo4j/graphql privilege escalation via dropped field-level @authentication · original
- Neo4j GraphQL @authentication not enforced on top-level @cypher fields · original
- @neo4j/graphql aggregation queries bypass @authentication (CVE-2026-92684) · original
- Craft CMS 5.0.0 before 5.11.2 GraphQL schema scope bypass via prev/next (critical) · original
- erxes insurance_api plugin missing authentication (GraphQL) · original
- Bolt: information disclosure through unfiltered public relation API endpoint · original
- ArcadeDB authorization bypass (GraphQL) · original
- GraphQL Vulnerabilities Bug Bounty 2026: Introspection, Batching and BOLA · original
- Drupal GraphQL Core Schema critical improper authorization: password change account takeover · original
- Prime CMS auth bypass via createUser GraphQL mutation (CVE-2026-129941) · original
- Kong graphql-proxy-cache-advanced leaks cached responses across callers · original
- Exploiting Broken Authentication Control in GraphQL · original
- API Threat Research: GraphQL Authorization Flaws in a FinTech Platform · original
- Delete anyone's Snapchat Spotlight content remotely ($15,000 IDOR via GraphQL mutation) · original
- The Mutation Everyone Tested, and the One Field Nobody Did: GraphQL Field-Level Authorization · original
- The Red Agent POV: Exploiting Broken Object-Level Authorization in an Airline GraphQL API · original
- WPGraphQL = 2.26.0 unauthenticated info exposure via comments connection filters · original
- GraphQLer: Context-Aware GraphQL API Fuzzing Tool · original
- Apollo Authentication and Authorization Docs · original
- GraphQL Cheat Sheet · original