turkdevops / sourcegraph

Universal code search (self-hosted)
https://sourcegraph.com
Other
1 stars 0 forks source link

CVE-2021-41248 (Medium) detected in graphiql-0.17.5.tgz - autoclosed #345

Closed mend-bolt-for-github[bot] closed 2 years ago

mend-bolt-for-github[bot] commented 2 years ago

CVE-2021-41248 - Medium Severity Vulnerability

Vulnerable Library - graphiql-0.17.5.tgz

An graphical interactive in-browser GraphQL IDE.

Library home page: https://registry.npmjs.org/graphiql/-/graphiql-0.17.5.tgz

Dependency Hierarchy: - :x: **graphiql-0.17.5.tgz** (Vulnerable Library)

Found in HEAD commit: f2de0e847e3ed821b08510b1e2352ad8fb36dea3

Found in base branch: dev/seed-tool

Vulnerability Details

GraphiQL is the reference implementation of this monorepo, GraphQL IDE, an official project under the GraphQL Foundation. All versions of graphiql older than graphiql@1.4.7 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.

Publish Date: 2021-11-04

URL: CVE-2021-41248

CVSS 3 Score Details (4.7)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/graphql/graphiql/security/advisories/GHSA-x4r7-m2q9-69c8

Release Date: 2021-11-04

Fix Resolution: 1.4.7-alpha-1f5f740c.0


Step up your Open Source Security Game with WhiteSource here

mend-bolt-for-github[bot] commented 2 years ago

:information_source: This issue was automatically closed by WhiteSource because it is a duplicate of an existing issue: #347

mend-bolt-for-github[bot] commented 2 years ago

:information_source: This issue was automatically closed by WhiteSource because it is a duplicate of an existing issue: #347