New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-playground-middleware-lambda

Package Overview
Dependencies
Maintainers
6
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-playground-middleware-lambda

GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).

  • 1.7.24
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.4K
decreased by-14.03%
Maintainers
6
Weekly downloads
 
Created
Source

graphql-playground-middleware-lambda

Koa middleware to expose an endpoint for the GraphQL Playground IDE SECURITY NOTE: All versions of graphql-playground-middleware-lambda until 1.7.17 or later have a security vulnerability when unsanitized user input is used while invoking lambdaPlayground(). Read more below

Installation

Using yarn:

yarn add graphql-playground-middleware-lambda

Or npm:

npm install graphql-playground-middleware-lambda --save

Usage

See full example in examples/basic.

minimal example:

const lambdaPlayground = require('graphql-playground-middleware-lambda').default

exports.handler = lambdaPlayground({
  endpoint: '/dev',
})

Security Notes

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: yarn add graphql-playground-middleware-lambda@^1.7.17

npm: npm install --save graphql-playground-middleware-lambda@^1.7.17

Keywords

FAQs

Package last updated on 04 Nov 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc