SecurityContext

CVE-2021-41249: GraphQL Playground - Stored XSS

  • Cve: CVE-2021-41249
  • Name: GraphQL Playground - Stored XSS
  • Description: GraphQL Playground is a GraphQL IDE for development of graphQL focused applications. All versions of graphql-playground-react older than [email protected] are vulnerable to compromised HTTP schema introspection responses or schema prop values with malicious GraphQL type names, exposing a dynamic XSS attack surface that can allow code injection on operation autocomplete. In order for the attack to take place, the user must load a malicious schema in graphql-playground. There are several ways this can occur, including by specifying the URL to a malicious schema in the endpoint query parameter. If a user clicks on a link to a GraphQL Playground installation that specifies a malicious server, arbitrary JavaScript can run in the user's browser, which can be used to exfiltrate user credentials or other harmful goals. If you are using graphql-playground-react directly in your client app, upgrade to version 1.7.28 or later.
  • Impact: Attackers can execute arbitrary JavaScript in the victim's browser, potentially leading to credential theft or other malicious activities.
  • Remediation: Upgrade to version 1.7.28 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: User loads a malicious schema or clicks on a malicious link
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.7
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01221
  • Epss percentile: 0.6947
  • Assignee: [email protected]
  • Published at: 2021-11-04T20:15:08Z
  • Age in days: 1846
  • Modified at: 2026-06-17T04:08:10Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-41249
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Hackerone

  • Reports: 1
  • Rank: 5211

References

UrlSourceTags
https://github.com/graphql/graphql-playground/commit/b8a956006835992f12c46b90384a79ab82bcadadnvdPatch, Third Party Advisory
https://github.com/graphql/graphql-playground/security/advisories/GHSA-59r9-6jp6-jcm7nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
graphql:playground< 1.7.28nonvd/v1/products/graphql/playground

Projects

RepositoryLink kindsIndexedUrl
graphql/graphiqlsecurity_advisoryyes/v1/repositories/graphql/graphiql
graphql/graphql-playgroundcommit, package, security_advisoryyes/v1/repositories/graphql/graphql-playground

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 2908
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since