{"id":"CVE-2020-4038","details":"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.","aliases":["GHSA-4852-vrh7-28rf"],"modified":"2026-07-08T06:00:07.177838369Z","published":"2020-06-08T21:15:09.923Z","database_specific":{"unresolved_ranges":[{"vendor_product":"prisma:graphql-playground-middleware-express","cpes":["cpe:2.3:a:prisma:graphql-playground-middleware-express:*:*:*:*:*:node.js:*:*"],"extracted_events":[{"fixed":"1.7.16"}],"source":"CPE_RANGE"},{"extracted_events":[{"fixed":"1.6.13"}],"source":"CPE_RANGE","vendor_product":"prisma:graphql-playground-middleware-hapi","cpes":["cpe:2.3:a:prisma:graphql-playground-middleware-hapi:*:*:*:*:*:node.js:*:*"]},{"vendor_product":"prisma:graphql-playground-middleware-koa","cpes":["cpe:2.3:a:prisma:graphql-playground-middleware-koa:*:*:*:*:*:node.js:*:*"],"extracted_events":[{"fixed":"1.6.15"}],"source":"CPE_RANGE"},{"extracted_events":[{"fixed":"1.7.17"}],"source":"CPE_RANGE","vendor_product":"prisma:graphql-playground-middleware-lambda","cpes":["cpe:2.3:a:prisma:graphql-playground-middleware-lambda:*:*:*:*:*:node.js:*:*"]}]},"references":[{"type":"ADVISORY","url":"https://github.com/prisma-labs/graphql-playground#security-details"},{"type":"ADVISORY","url":"https://github.com/prisma-labs/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf"},{"type":"FIX","url":"https://github.com/prisma-labs/graphql-playground/commit/bf1883db538c97b076801a60677733816cb3cfb7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/graphql/graphql-playground","events":[{"introduced":"0"},{"fixed":"220a7c19030fe15fc309082c3163b109a72a1551"},{"fixed":"bf1883db538c97b076801a60677733816cb3cfb7"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:prisma:graphql-playground-html:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.6.22"}]}}],"versions":["graphql-playground-react@1.7.27","graphql-playground-middleware-lambda@1.7.23","graphql-playground-middleware-koa@1.6.21","graphql-playground-middleware-hapi@1.6.19","graphql-playground-middleware-express@1.7.22","graphql-playground-html@1.6.29","graphql-playground-electron@1.8.15","graphql-playground-middleware-lambda@1.7.22","graphql-playground-middleware-koa@1.6.20","graphql-playground-middleware-hapi@1.6.18","graphql-playground-middleware-express@1.7.21","graphql-playground-html@1.6.28","graphql-playground-electron@1.8.14","graphql-playground-react@1.7.26","graphql-playground-middleware-lambda@1.7.21","graphql-playground-middleware-koa@1.6.19","graphql-playground-middleware-hapi@1.6.17","graphql-playground-middleware-express@1.7.20","graphql-playground-html@1.6.27","graphql-playground-electron@1.8.13","graphql-playground-react@1.7.24","graphql-playground-middleware-lambda@1.7.20","graphql-playground-middleware-koa@1.6.18","graphql-playground-middleware-hapi@1.6.16","graphql-playground-middleware-express@1.7.19","graphql-playground-html@1.6.26","graphql-playground-electron@1.8.12","graphql-playground-react@1.7.23","graphql-playground-middleware-lambda@1.7.18","graphql-playground-middleware-koa@1.6.16","graphql-playground-middleware-hapi@1.6.14","graphql-playground-middleware-express@1.7.15","graphql-playground-html@1.6.23","graphql-playground-electron@1.8.11","v1.8.10","v1.8.9","v1.8.8","v1.8.7","v1.8.6","v1.8.5","v1.8.4","v1.8.3","v1.8.2","v1.8.1","v1.8.0","v1.7.0","v1.6.3","1.6.2","v1.6.1","v1.6.0","v1.5.9","v1.5.8","v1.5.7","v1.5.6","v1.5.5","v1.5.4","1.5.3","v1.5.2","v1.5.1","v1.5.0","v1.5.0-rc.5","v1.5.0-rc.4","v1.5.0-rc.2","v1.5.0-rc.1","v1.4.3","v1.4.2","v1.4.1","v1.4.0","v1.3.24","v1.3.23","v1.3.22","v1.3.21","v1.3.20","v1.3.19","v1.3.18","v1.3.17","v1.3.16","v1.3.15","v1.3.14","v1.3.13","v1.3.12","v1.3.11","v1.3.10","v1.3.9","v1.3.8","1.3.8-beta.1","v1.3.6","v1.3.5","v1.3.4","v1.3.0","v1.2.0","v1.1.6","v1.1.1","v1.1.0","v1.0.2-rc.1","v1.0.2","v1.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-4038.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N"}]}