artkamote / examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
https://www.serverless.com/examples/
Other
0 stars 0 forks source link

CVE-2020-4038 (High) detected in multiple libraries #168

Open mend-bolt-for-github[bot] opened 2 years ago

mend-bolt-for-github[bot] commented 2 years ago

CVE-2020-4038 - High Severity Vulnerability

Vulnerable Libraries - graphql-playground-middleware-lambda-1.7.12.tgz, graphql-playground-middleware-express-1.7.11.tgz, graphql-playground-html-1.6.12.tgz

graphql-playground-middleware-lambda-1.7.12.tgz

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

Library home page: https://registry.npmjs.org/graphql-playground-middleware-lambda/-/graphql-playground-middleware-lambda-1.7.12.tgz

Path to dependency file: /aws-node-graphql-and-rds/package.json

Path to vulnerable library: /aws-node-graphql-and-rds/node_modules/graphql-playground-middleware-lambda/package.json

Dependency Hierarchy: - graphql-yoga-1.17.4.tgz (Root Library) - :x: **graphql-playground-middleware-lambda-1.7.12.tgz** (Vulnerable Library)

graphql-playground-middleware-express-1.7.11.tgz

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

Library home page: https://registry.npmjs.org/graphql-playground-middleware-express/-/graphql-playground-middleware-express-1.7.11.tgz

Path to dependency file: /aws-node-graphql-and-rds/package.json

Path to vulnerable library: /aws-node-graphql-and-rds/node_modules/graphql-playground-middleware-express/package.json

Dependency Hierarchy: - graphql-yoga-1.17.4.tgz (Root Library) - :x: **graphql-playground-middleware-express-1.7.11.tgz** (Vulnerable Library)

graphql-playground-html-1.6.12.tgz

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

Library home page: https://registry.npmjs.org/graphql-playground-html/-/graphql-playground-html-1.6.12.tgz

Path to dependency file: /aws-node-graphql-and-rds/package.json

Path to vulnerable library: /aws-node-graphql-and-rds/node_modules/graphql-playground-html/package.json

Dependency Hierarchy: - graphql-yoga-1.17.4.tgz (Root Library) - graphql-playground-middleware-express-1.7.11.tgz - :x: **graphql-playground-html-1.6.12.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

Vulnerability Details

GraphQL Playground (graphql-playground-html NPM package) before version 1.6.22 have a severe XSS Reflection attack vulnerability. All unsanitized user input passed into renderPlaygroundPage() method could trigger this vulnerability. This has been patched in graphql-playground-html version 1.6.22. Note that some of the associated dependent middleware packages are also affected including but not limited to graphql-playground-middleware-express before version 1.7.16, graphql-playground-middleware-koa before version 1.6.15, graphql-playground-middleware-lambda before version 1.7.17, and graphql-playground-middleware-hapi before 1.6.13.

Publish Date: 2020-06-08

URL: CVE-2020-4038

CVSS 3 Score Details (7.4)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: High - Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2020-06-12

Fix Resolution (graphql-playground-middleware-lambda): 1.7.17

Direct dependency fix Resolution (graphql-yoga): 2.0.0

Fix Resolution (graphql-playground-middleware-express): 1.7.17

Direct dependency fix Resolution (graphql-yoga): 2.0.0

Fix Resolution (graphql-playground-html): 1.7.17

Direct dependency fix Resolution (graphql-yoga): 1.18.0


Step up your Open Source Security Game with Mend here

mend-bolt-for-github[bot] commented 2 months ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-bolt-for-github[bot] commented 2 months ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.