Menu

Is your GraphQL API wide open? A 10-minute check for AI-built apps
📰

Is your GraphQL API wide open? A 10-minute check for AI-built apps

DEV Community: graphql·ProofForge | AI app security·2 days ago
#tq6kttvz
#devtographql#devto#dev#user#graphql
Long article (651 words) — no AI summary yet.
Reading 0:00
15s threshold

If your AI-built app uses GraphQL, there is one question to ask first: can a stranger ask your API what it contains, and can they ask for everything at once?

GraphQL gives clients a lot of freedom. That is the point of it, and it is also why a few default settings matter more than they do in a plain REST API.

Who is at risk

Any app with a /graphql endpoint, including apps that use Hasura, Apollo, Supabase's GraphQL layer, or a Next.js API route that exposes one. AI tools turn on the friendly defaults because they make the demo easier to build.

What tends to go wrong

Introspection is open in production. Anyone can download the full list of types, queries and mutations, which is a free map of your data.

No authorization on the resolvers. The endpoint checks that you are signed in, but not that the record belongs to you. This is the same IDOR problem as in REST.

No depth or size limits.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.