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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | graphql-playground-html | 1.6.22 | GHSA-4852-vrh7-28rf |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/prisma-labs/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf x_refsource_CONFIRM
- https://github.com/prisma-labs/graphql-playground/commit/bf1883db538c97b076801a60677733816cb3cfb7 x_refsource_MISC
- https://github.com/prisma-labs/graphql-playground#security-details x_refsource_MISC