Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Detects GraphQL injection by tracing user input into unsafely assembled operation documents, in three phases with subagents.
45% 82%+36 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 10 of 22 without it.
3 of 3 safety checks passed
Not used yet
You are performing a focused security assessment to find GraphQL injection vulnerabilities. This skill uses a three-phase approach with subagents: recon (confirm GraphQL usage and find every location where a GraphQL operation document is assembled unsafely), batched verify (trace whether user-supplied input reaches those assembly sites, in parallel batches of up to 3 sites each), and merge (consolidate batch results into the final report).
Prerequisites: sast/architecture.md must exist. Run the analysis skill first if it doesn't.
GraphQL injection occurs when user-controlled data is embedded into the GraphQL document (the query, mutation, or subscription string) rather than passed only through the variables map. The parser then interprets attacker-controlled syntax — new fields, aliases, directives, or fragments — which can bypass intent, reach unauthorized resolvers, or change server-side behavior when that document is executed or forwarded.
The core pattern: unvalidated user input alters the structure or text of the GraphQL operation string passed to execute, graphql, a gateway client, or an HTTP body query field built from string operations.
`query { user(id: "${id}") { name } }`, "query { user(id: \"" + id + "\") { name } }"query field for a downstream GraphQL HTTP request with string concat from request body or paramsreq.body.query (or similar) into another interpolated template that wraps or extends the operationgql / graphql-tag template literals where a non-static expression changes document structure (not just a bound variable value inside a static document)graphql.execute(), graphqlHTTP, Yoga/Apollo request pipeline where the first argument (document/source) is built from variables that could be user-influencedDo not flag these as GraphQL injection:
args — that is SQL injection (sast-sqli), not this skill{"query": "query($id: ID!) { user(id: $id) { name } }", "variables": {"id": userInput}} — values are bound as variables; the document structure is fixed (still verify authorization in resolvers)1. Static operation documents with variables
const GET_USER = gql`
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.