GraphQL security checks for testers
A GraphQL service lets a client ask for any shelf by name. Learn five safe checks on the test site: the stock list, deep queries, batches, field access and odd inputs.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a shop that lets you ask for any shelf by name. You may ask for a tin of beans, or for the stock list, or for every shelf in the building in one go. In this shop, the agreed rule keeps the stock list for staff and limits large orders. Another shop may deliberately publish its catalogue; the rules matter.
Daily List is a to-do list app. Its mobile feed uses GraphQL, a query language where the client writes the question and names the fields it wants. Leo, the developer, built it. Tom, the tester, has from Nina to test it on the test site.
Tom has five questions. Does the service hand over its own plan to strangers? Can one question be made so deep that it burdens the server? Can one request hide many tries? Can Lily see only Lily's fields? Does a strange value get a clear refusal?
These are the GraphQL security checks. Some checks exercise attack-like inputs and can affect the service, so the agreed scope and operational limits matter. Tom runs them in small steps, only on the test site, and only with that permission.
The picture has a limit. A shop assistant uses judgement. A server only follows its rules, so a missing rule is a gap.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Five safe checks on a GraphQL service: the stock list, deep questions, batches, field access and odd values.
- Ask for the list
- Go one level over
- Hide tries in one request
- Ask for another user's object
- Send an odd value
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The stock list kept for staff | Introspection kept off in public |
| A request for every shelf at once | A query that is too deep or too costly |
| Asking for the same shelf under ten names | Aliases and batches that hide tries |
| The staff-only room | Field and object access checks |
WHERE THIS PICTURE STOPS
- A shop can use judgement. A server only follows its rules.
- A shop sees each customer. A server may see only one request for many tries.
- A shop can ban a customer. A test can only report a gap.
HOOK
List, depth, batch, access, odd values.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
If a GraphQL question could burden the server or hide many tries, usually run it in small steps on the test site with Nina's .
| In the trick | What it stands for |
|---|---|
| Small steps | Tom runs them in small steps |
| Permission | written permission from Nina |
A server only follows its rules, so passing small checks does not prove there is no gap.
TELL A FRIEND
A shop where you can ask for any shelf by name. A good shop keeps the stock list for staff and refuses a request for the whole warehouse.
OFTEN MIXED UP WITH Testing GraphQL, gRPC and WebSocket APIs. The application programming interface () styles lesson shows how GraphQL is asked and read. This lesson is about the security checks on it.
Sources & standards — 3 sources
- Market practice
GraphQL cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project (OWASP) · Actual input/depth/amount/time/cost/rate/access/batching/introspection sections; policy-specific schema exposure and executed-operation evidence; reviewed6November2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Read actual relevant current sections6November2026, including batching and introspection details. Do not claim the primary sheet omits batching or use its BOLA authentication typo as a definition.
- Market practice
Broken Object Level Authorization, the first risk in the 2023 Open Worldwide Application Security Project API Security Top 10 ↗ — Open Worldwide Application Security Project (OWASP) · Actual API1:2023 definition and prevention: authorisation for the action/object; distinguishes BFLA; corrects GraphQL-sheet authentication-label typo; read6November2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2023 edition. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Read actual API1:2023 body6November2026: definition, examples and prevention. Use its authorisation term to resolve the GraphQL sheet typo; do not equate every access to another owner's intentionally shared object with a vulnerability.
- Market practice
Authentication cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project · Actual automated-attack/throttling/lockout sections: threshold, observation window, duration and denial-of-service tradeoffs; reviewed6November2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: actual automated-attack/throttling/lockout section read; distinguish threshold, observation window and duration, and consider lockout denial-of-service tradeoffs.
PRACTISE AND KEEP
Sources for this topic — 7 sources
- Market practice
GraphQL cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project (OWASP) · Actual input/depth/amount/time/cost/rate/access/batching/introspection sections; policy-specific schema exposure and executed-operation evidence; reviewed6November2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Read actual relevant current sections6November2026, including batching and introspection details. Do not claim the primary sheet omits batching or use its BOLA authentication typo as a definition.
- Market practice
Avoid GraphQL Denial of Service attacks through batching and aliasing (Escape blog) ↗ — Escape · One request can carry many operations or the same field under many names, so a limit that counts requests can be bypassed (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
GraphQL security testing checklist (Invicti blog) ↗ — Invicti · Limit batched operations by count, identity and cost; check access at the level of each resolver and each object (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
GraphQL Specification, October 2021 edition ↗ — GraphQL Foundation · The specification defines the type system and introspection (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: October 2021. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
8 November2026 bounded primary-source update: GraphQL October2021 §§2.7,6.2.3 Delivery Agnostic,6.4.4 and7.1 selected sections actually read 8 November2026. Selection aliases, request versus field errors, partial data/nonnull propagation and transport/QoS boundaries; not full specification reread.
- Market practice
Open Worldwide Application Security Project cheat sheet series: input validation ↗ — Open Worldwide Application Security Project (OWASP) · Check both the syntax and the meaning of a value, and reject invalid input with a clear error (search excerpt, page not opened)
Search excerpt, page not opened: returned by WebSearch on 2026-10-18. The excerpts did not use the phrase as early as possible in the data flow, so this site does not quote it. It is guidance for software in general, not for payments.
V34 review, 6 November 2026: Read complete official repository sheet. Syntax, semantic business rules, server checks and safe handling of legitimate Unicode/punctuation have distinct roles.
- Market practice
Broken Object Level Authorization, the first risk in the 2023 Open Worldwide Application Security Project API Security Top 10 ↗ — Open Worldwide Application Security Project (OWASP) · Actual API1:2023 definition and prevention: authorisation for the action/object; distinguishes BFLA; corrects GraphQL-sheet authentication-label typo; read6November2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2023 edition. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: Read actual API1:2023 body6November2026: definition, examples and prevention. Use its authorisation term to resolve the GraphQL sheet typo; do not equate every access to another owner's intentionally shared object with a vulnerability.
- Market practice
Authentication cheat sheet (Open Worldwide Application Security Project cheat sheet series) ↗ — Open Worldwide Application Security Project · Actual automated-attack/throttling/lockout sections: threshold, observation window, duration and denial-of-service tradeoffs; reviewed6November2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
V34 review, 6 November 2026: actual automated-attack/throttling/lockout section read; distinguish threshold, observation window and duration, and consider lockout denial-of-service tradeoffs.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.