Vulnerability · Published Jun 8, 2020 · Assigned by GitHub_M

CVE-2020-4038Reflected XSS in GraphQL Playground

High 7.4

In plain English

A high-severity cross-site scripting in graphql-playground from prisma-labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 7.2% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)7.2%top 5.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmgraphql-playground-html1.6.22GHSA-4852-vrh7-28rf

Affected products (as reported)

VendorProductVersions
prisma-labs graphql-playground < 1.6.22

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

References