Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
graphql-playground-middleware-koa
Advanced tools
GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).
Koa middleware to expose an endpoint for the GraphQL Playground IDE SECURITY NOTE: All versions of
graphql-playground-koa
until1.6.15
or later have a security vulnerability when unsanitized user input is used while invokingkoaPlayground()
. Read more below
Using yarn:
yarn add graphql-playground-middleware-koa
Or npm:
npm install graphql-playground-middleware-koa --save
See full example in examples/basic.
const koa = require('koa')
const koaRouter = require('koa-router')
const koaPlayground = require('graphql-playground-middleware-koa')
const app = new koa()
const router = new koaRouter()
router.all('/playground', koaPlayground({ endpoint: '/graphql' }))
All versions before 1.6.15
were vulnerable to user-defined input to koaPlayground()
. Read more in the security notes
To fix the issue, you can upgrade to 1.6.15
or later. If you aren't able to upgrade, see the security notes for a workaround.
yarn:
yarn add graphql-playground-koa@^1.6.15
npm:
npm install --save graphql-playground-koa@^1.6.15
FAQs
GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).
The npm package graphql-playground-middleware-koa receives a total of 32,328 weekly downloads. As such, graphql-playground-middleware-koa popularity was classified as popular.
We found that graphql-playground-middleware-koa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.