Browser & protocol
GraphQL Security
GraphQL endpoints expose resolver, field and subscription boundaries that require authorization independently of schema discovery and HTTP routing. Query batching, aliases and nested relationships can exercise different authorization paths.
- 32 payloads
- 1 file
- README on GitHub
Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.
These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.
Payload files
Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.
graphql-security-payloads.txt
32 payloads · 5.0 KBLoading payloads for GraphQL Security…
Common Attack Vectors#
- Root, nested and node resolver authorization
- Field-level reads and input-object mass assignment
- Aliases and JSON array batching
- Persisted-query enforcement
- Query depth and cost limits
- Subscription ownership and session invalidation
- GET versus POST transport handling
Testing Approach#
Use a small lab schema with User, Project and Document types and two owned accounts in separate tenants. Adapt field names to the actual schema; unknown-field errors are not vulnerabilities. Introspection may be intentionally enabled. Compare access to the same object through root, node and nested resolvers, including mixed authorized/unauthorized results in one query.
Keep batching to two operations and depth tests to the small examples provided. Cost tests should use configured lab limits rather than large resource-exhaustion queries. For subscriptions, verify actual messages and post-logout authorization, not just connection establishment. A persisted-query deployment may intentionally support arbitrary query registration; assess its documented mode.
References#
Responsible Use
All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.
- Systems and applications you own
- Authorized penetration testing engagements
- Bug bounty programs with defined scope
- Educational lab environments (DVWA, WebGoat, HackTheBox)