CVE-2020-4038Reflected XSS in GraphQL Playground
- 7.4HighCVSS base score
- 7.2%Exploitation in 30 daysEPSS · top 5.6% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 5 months later
· 5 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
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 (13 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.4.
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
References3
- 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)
- EUVD EUVD-2020-0456 (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://cveledger.app/cve/CVE-2020-4038)Record last updated .