Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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 29,768 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.