Home / graphql / graphiql / CVE-2021-41248
CVE-2021-41248: is it exploited, and which versions of graphql graphiql are affected and fixed?
CVE-2021-41248 is a cross-site scripting (XSS) vulnerability in graphql graphiql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: graphiql from 0.5.0 before 1.4.7 (GitHub advisory GHSA-x4r7-m2q9-69c8). Fixed in 1.4.7 (GitHub advisory GHSA-x4r7-m2q9-69c8). Severity: High (7.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:53 UTC.
What is CVE-2021-41248?
XSS vulnerability in GraphiQL
GraphiQL is the reference implementation of this monorepo, GraphQL IDE, an official project under the GraphQL Foundation. All versions of graphiql 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 vulnerable schema in graphiql. There are a number of ways that can occur. By default, the schema URL is not attacker-controllable in graphiql or in its suggested implementations or examples, leaving only very complex attack vectors. If a custom implementation of graphiql's fetcher allows the schema URL to be set dynamically, such as a URL query parameter like ?endpoint= in graphql-playground, or a database provided value, then this custom graphiql implementation is vulnerable to phishing attacks, and thus much more readily available, low or no privelege level xss attacks. The URLs could look like any generic looking graphql schema URL. It should be noted that desktop clients such as Altair, Insomnia, Postwoman, do not appear to be impacted by this. This vulnerability does not impact codemirror-graphql, monaco-graphql or other dependents, as it exists in onHasCompletion.ts in graphiql. It does impact all forks of graphiql, and every released version of graphiql.
From the CVE record by GitHub_M, last updated August 4, 2024, 03:08 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| graphql | graphiql | >= 0.5.0, < 1.4.7 |
As the CVE record by GitHub_M states it, last updated August 4, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | graphiql | >= 0.5.0, < 1.4.7 | 1.4.7 | GHSA-x4r7-m2q9-69c8 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 4, 2021. Summary: GraphiQL introspection schema template injection attack.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| graphql | graphiql | from 0.5.0 before 1.4.7 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:08 UTC.
How severe is CVE-2021-41248?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L | GitHub_M |
| Medium 4.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD |
| Low 2.6 | CVSS 2.0 | AV:N/AC:H/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-41248 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.22% probability of exploitation activity in the next 30 days, percentile 69.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://github.com/graphql/graphiql/security/advisories/GHSA-x4r7-m2q9-69c8 x_refsource_CONFIRM
- https://github.com/graphql/graphql-playground/security/advisories/GHSA-59r9-6jp6-jcm7 x_refsource_MISC
- https://github.com/graphql/graphiql/commit/cb237eeeaf7333c4954c752122261db7520f7bf4 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- September 15, 2021
- Published
- November 4, 2021, 20:15 UTC
- CVE record updated
- August 4, 2024, 03:08 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:08 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:53 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2021-41248
Is CVE-2021-41248 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 1.22% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of graphql graphiql are affected by CVE-2021-41248?
graphiql from 0.5.0 before 1.4.7, per the GitHub advisory GHSA-x4r7-m2q9-69c8. The tables above give every range the sources list.
Which version fixes CVE-2021-41248?
1.4.7, per the GitHub advisory GHSA-x4r7-m2q9-69c8. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-41248?
High (7.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2021-41248?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.