CVE-2020-4038: GraphQL Playground (graphql-playground-html NPM package) before version 1.6.22 have a severe XSS Reflection at
CVE-2020-4038 is a high-severity flaw (CVSS 7.4) affecting graphql-playground-html, graphql-playground-middleware-express, graphql-playground-middleware-hapi. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 befo
Why this priority
- High severity
- EPSS top 6%: very likely to be exploited
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.4 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 7.2% (top 6%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2020-06-08 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-4038?
graphql-playground-html: upgrade to 1.6.22; graphql-playground-middleware-express: upgrade to 1.7.16; graphql-playground-middleware-hapi: upgrade to 1.6.13. Exact commands for each OS are on this page.
Is CVE-2020-4038 being exploited?
CVE-2020-4038 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2020-4038 affect?
CVE-2020-4038 affects graphql-playground-html, graphql-playground-middleware-express, graphql-playground-middleware-hapi. Severity is high (CVSS 7.4). 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 ha
How urgent is CVE-2020-4038?
Priority 49/100. High severity; EPSS top 6%: very likely to be exploited