Koa middleware to expose an endpoint for the GraphQL Playground IDE SECURITY NOTE: All versions of
1.7.17or later have a security vulnerability when unsanitized user input is used while invoking
lambdaPlayground(). Read more below
yarn add graphql-playground-middleware-lambda
npm install graphql-playground-middleware-lambda --save
See full example in examples/basic.
const lambdaPlayground = defaultexportshandler =
All versions before
1.7.17 were vulnerable to user-defined input to
lambdaPlayground(). Read more in the security notes
Security Upgrade Steps
To fix the issue, you can upgrade to
1.7.17. If you aren't able to upgrade, see the security notes for a workaround.
yarn add graphql-playground-middleware-lambda@^1.7.17
npm install --save graphql-playground-middleware-lambda@^1.7.17