{"id":"CVE-2020-4038","published":"2020-06-08T20:40:12Z","modified":"2024-08-04T07:52:20Z","title":"Reflected XSS in GraphQL Playground","vendor":"prisma-labs","product":"graphql-playground","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07243,"percentile":0.94476,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/prisma-labs/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/prisma-labs/graphql-playground/commit/bf1883db538c97b076801a60677733816cb3cfb7","tags":["x_refsource_MISC"]},{"url":"https://github.com/prisma-labs/graphql-playground#security-details","tags":["x_refsource_MISC"]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":18.9},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"prisma-labs","affectedVersions":[{"vendor":"prisma-labs","product":"graphql-playground","versions":["< 1.6.22"]}],"affected":[{"ecosystem":"npm","package":"graphql-playground-html","vulnerableRanges":["<1.6.22"],"patched":["1.6.22"],"from":["GHSA-4852-vrh7-28rf"],"provenance":"source"}],"summary":{"text":"The reflected cross-site scripting flaw lives in the graphql-playground-html NPM package of GraphQL Playground (prisma-labs), where unsanitized user input passed into its renderPlaygroundPage() method can be reflected into the generated page, and dependent middleware packages (graphql-playground-middleware-express, -koa, -lambda and -hapi) are also affected. An unauthenticated remote attacker who can get a victim to load a crafted link or request that carries the malicious input can inject script that runs in the victim's browser, and exploitation requires that user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:03:28Z"},"euvd":{"id":"EUVD-2020-0456","exploited":false,"provenance":"source"}}