Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2020-4038: GraphQL Playground (graphql-playground-html NPM package) before version 1.6.22 have a severe XSS Reflection at

49
This month
HIGH 7.4UPGRADEUPGRADEUPGRADE

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 score7.4 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance7.2% (top 6%)
CISA exploited listNo
WeaknessCWE-79
Published2020-06-08
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: prisma

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

prisma graphql-playground-html UPGRADE
Affected: < 1.6.22
Fixed in: 1.6.22
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls graphql-playground-html
2. UPGRADE to 1.6.22
npm install graphql-playground-html@">=1.6.22"
prisma graphql-playground-middleware-express UPGRADE
Affected: < 1.7.16
Fixed in: 1.7.16
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls graphql-playground-middleware-express
2. UPGRADE to 1.7.16
npm install graphql-playground-middleware-express@">=1.7.16"
prisma graphql-playground-middleware-hapi UPGRADE
Affected: < 1.6.13
Fixed in: 1.6.13
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls graphql-playground-middleware-hapi
2. UPGRADE to 1.6.13
npm install graphql-playground-middleware-hapi@">=1.6.13"
prisma graphql-playground-middleware-koa UPGRADE
Affected: < 1.6.15
Fixed in: 1.6.15
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls graphql-playground-middleware-koa
2. UPGRADE to 1.6.15
npm install graphql-playground-middleware-koa@">=1.6.15"
prisma graphql-playground-middleware-lambda UPGRADE
Affected: < 1.7.17
Fixed in: 1.7.17
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls graphql-playground-middleware-lambda
2. UPGRADE to 1.7.17
npm install graphql-playground-middleware-lambda@">=1.7.17"
Verify at the official source NVD · CVE Program · Report a problem with this page
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

Software pages

npm packages vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.