GraphQL Introspection & Security Checker

Your GraphQL API answers questions about itself. Find out what it tells strangers.

GraphQL introspection is the feature that lets a client ask an API what types, fields and mutations it has. Leave it on in production and anyone can download your whole schema — every type, every field, every mutation — and plan an attack from it. Paste an introspection JSON result or a schema document here, or probe an endpoint live, and this checker audits it in your browser — never uploaded — flagging introspection left enabled, endpoints that answer without authentication, sensitive field names, dangerous mutations, deprecated fields and nesting deep enough to abuse. The companion article GraphQL introspection security check explains what an exposed schema hands an attacker. Also see the MCP Server Probe, the Dangling DNS Checker and the GitHub Actions Workflow Auditor.

Last updated:

1. Check a GraphQL API

Drop a schema file here, or choose one below

An introspection JSON result or a GraphQL SDL document. Up to 1 MB — parsed in your browser.

🔒 The audit runs entirely in your browser: the schema is never uploaded, never stored, and never sent anywhere. A live probe sends only the standard introspection query to the endpoint you enter — no credentials, no data queries.

What GraphQL introspection is

GraphQL is a query language for APIs: the client asks for exactly the fields it wants, and the server answers with JSON. The schema is the contract — it lists every type (User, Post, …), every field on each type, and every query, mutation and subscription the API offers. Introspection is a built-in query, __schema, that returns that whole contract to anyone who asks. Development tools use it to offer autocomplete; so does anyone mapping your API.

An introspection result is a JSON document with a __schema object: a queryType, an optional mutationType and subscriptionType, and a types array. Each type lists its kind (OBJECT, SCALAR, ENUM, …) and its fields, with each field’s arguments, return type, and whether it is deprecated. A schema document (SDL) says the same thing in text: type User { id: ID! name: String }. This checker reads either shape and audits the same rules over both.

Mutations are the write operations: updateUser, deleteUser, resetPassword. Queries only read; mutations change things, so a mutation that deletes or escalates privilege deserves a closer look than a query that lists posts. Subscriptions are live streams the server pushes to the client. All three are declared in the schema, which is why the schema itself is worth protecting.

Depth is the other half of the risk. Types that reference each other — a User has Posts, a Post has an author who is a User — let one query nest as deep as the caller likes: user { posts { author { posts { author … } } } }. Without a depth limit, one expensive query can do the work of thousands. That is why this checker flags cycles in the type graph.

What this checker does — and what it does not

It reads an introspection JSON result or an SDL document in your browser and runs 10 checks: introspection left enabled, an endpoint that answers with no authentication (live probe only), sensitive field names, dangerous mutations, any mutations at all, deprecated fields, deep or cyclic nesting, subscriptions enabled, a very large schema, and — as an explicit Info note — that rate limiting cannot be seen in a schema. Results are a 0–100 score with a verdict, findings grouped by severity with a fix for each, a types table, and a findings CSV export.

It does not judge intent: a finding is a pattern, not a verdict. A password field may be resolvable only by the user it belongs to; a deleteUser mutation may require an admin role; a deprecated field may be kept for one old client on purpose. It does not run your queries, does not call your mutations, and never sends credentials — a live probe sends only the introspection query, with no authentication headers. A clean audit is not a guarantee: it only checks the schema you gave it.

The demo is a synthetic schema with a Query, a Mutation and a Subscription, built to trip the rules on purpose: introspection on, a password field, a deleteUser mutation, two deprecated fields, and a User ↔ Post cycle. One click fills the input and shows a Risky verdict on the first screen. The live-probe demo sends the same introspection query to the public countries API, which answers it with no authentication — a real example of an endpoint that leaves introspection on.

Be honest about what a finding means

A finding means “this pattern matched”, not “something bad happened”. A sensitive field name is a lead, not a leak: check whether the field is actually resolvable by an anonymous caller before treating it as an exposure. A dangerous mutation name is the same — check the authorization on it. The two findings that need no further evidence are the endpoint-level ones: if introspection answers, and answers without authentication, the schema is public whether you meant it to be or not.

And a clean audit is not a clean bill of health. This tool sees only the schema: it cannot see whether a field that looks harmless returns data it should not, whether a query that looks cheap is expensive to resolve, or whether the endpoint enforces the depth limit the schema cannot show. “No findings” means no risky pattern was found here — not that the API is safe.

Key facts

IntrospectionA built-in GraphQL query, __schema, that returns the API’s whole schema — every type, field, argument and mutation — to anyone who asks. Meant for developer tools; dangerous when left on in production.
SDLThe Schema Definition Language: the text form of a schema — type User { id: ID! name: String }. It says the same thing as an introspection JSON result, in a form humans read.
MutationA write operation in the schema: create, update, delete. Queries only read; mutations change state, so they are where the dangerous operations live.
Sensitive fieldA field whose name suggests it returns secret or personal data — password, token, apiKey, ssn, creditCard. The name alone is a lead, not proof: check who can resolve it.
Query depthHow deeply a query can nest: user { posts { author { posts … } } }. Types that reference each other let a single query nest without limit unless the server caps the depth.
SubscriptionA live stream declared in the schema: the server pushes updates to the client instead of the client polling. Enabled subscriptions widen what an API exposes.
Persisted queriesA hardening technique: the server only runs queries it has seen before, identified by a hash. Unknown queries — including introspection — are rejected outright.
Format referenceGraphQL Specification — graphql.org

Frequently asked questions

Should introspection be disabled in production?

Usually, yes. Introspection exists so developer tools can offer autocomplete and validation while you build the API; in production it hands anyone the full map of your API — every type, field and mutation — for free. Apollo Server, GraphQL Yoga and most frameworks let you turn it off with one option, and persisted queries give you a stronger version of the same protection: unknown queries are rejected outright. The exceptions are public APIs that document their schema anyway, and developer-facing playgrounds that are meant to be explored.

My endpoint answers introspection without authentication — is it unsafe?

It means your schema is public, which is a real exposure but not a breach by itself. The risk depends on what the schema reveals: a password field, an unguarded deleteUser mutation, or a deeply nested type graph turns a public schema into an attack plan. Read the findings with their evidence, then decide: disable introspection, require authentication before the schema is served, or both. And remember a probe that fails here does not prove the endpoint is safe — it only proves this browser could not reach it.

Why does the live probe sometimes fail when the endpoint works in my own app?

Because browsers enforce CORS: a web page may only fetch from another origin if that origin allows it. Your app works because it is allowed; this page is a different origin, and many GraphQL endpoints do not send the CORS headers a browser needs. That is a browser rule, not a verdict on your endpoint — paste the introspection JSON result instead and the audit runs the same checks locally.