CVE-2020-4038
Reflected XSS in GraphQL Playground
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
| NVDNVD · Modified | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 7.2% · top 5.6% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.4.
Weakness
Affected products
prisma-labs · graphql-playground
- affected < 1.6.22
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmgraphql-playground-htmlGHSA-4852-vrh7-28rf (opens in a new tab)
References (3)
- https://github.com/prisma-labs/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/prisma-labs/graphql-playground/commit/bf1883db538c97b076801a60677733816cb3cfb7 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/prisma-labs/graphql-playground#security-details (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-4852-vrh7-28rf (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-4038)Record last updated .