Vulnerabilities in pkg:npm/graphql-shield

PACKAGE
Advisory Summary

GHSA-hx78-272p-mqqh is a LOW authorization bypass vulnerability (CWE-285: Improper Authorization) affecting Graphql shield libraries in the npm ecosystem. The issue involves authorization bypass in graphql-shield. Remediation is available by upgrading affected packages to version 6.0.6.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/graphql-shield

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/graphql-shield. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hx78-272p-mqqh - LOW Authorization Bypass in graphql-shield

GHSA-hx78-272p-mqqh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hx78-272p-mqqh
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-285: Improper Authorization
Affected Product Graphql shield
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-hx78-272p-mqqh

To remediate this vulnerability, upgrade all affected Graphql shield dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

graphql-shield fixed: 6.0.6
npm install graphql-shield@6.0.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls graphql-shield

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-hx78-272p-mqqh, inspect your project dependencies using npm:

npm ls graphql-shield

Analyze the terminal output to locate any version of Graphql shield in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.6), your application is affected.

Note: The npm ls graphql-shield command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Graphql shield, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of `graphql-shield` prior to 6.0.6 are vulnerable to an Authorization Bypass. The rule caching option `no_cache` relies on keys generated by cryptographically insecure functions, which may cause rules to be incorrectly cached. This allows attackers to access information they should not have access to in case of a key collision. ## Recommendation Upgrade to version 6.0.6 or later.

GHSA-hx78-272p-mqqh Affected Graphql shield Versions

1 component(s)
Fixed Versions:
6.0.6
Product / Package Ecosystem Affected Versions Fixed Version
graphql-shield
npm
< 6.0.6
6.0.6

References

Frequently Asked Questions

What is GHSA-hx78-272p-mqqh?
GHSA-hx78-272p-mqqh is a security vulnerability in Graphql shield involving Authorization Bypass in graphql-shield under CWE-285: Improper Authorization.
Which Graphql shield versions are affected?
Affected versions include releases prior to 6.0.6 across affected packages: graphql-shield.
What version fixes GHSA-hx78-272p-mqqh?
Upgrading to 6.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is graphql-shield affected?
Yes, graphql-shield is affected in releases prior to 6.0.6. Upgrade your dependency to 6.0.6 or later.
What CWE is associated with GHSA-hx78-272p-mqqh?
GHSA-hx78-272p-mqqh is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for GHSA-hx78-272p-mqqh?
Run the dependency tree command: 'npm ls graphql-shield'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hx78-272p-mqqh",
  "modified" : "2020-08-31T18:47:59Z",
  "published" : "2020-09-03T19:21:11Z",
  "aliases" : [ ],
  "summary" : "Authorization Bypass in graphql-shield",
  "details" : "Versions of `graphql-shield` prior to 6.0.6 are vulnerable to an Authorization Bypass. The rule caching option `no_cache` relies on keys generated by cryptographically insecure functions, which may cause rules to be incorrectly cached. This allows attackers to access information they should not have access to in case of a key collision.\n\n\n## Recommendation\n\nUpgrade to version 6.0.6 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "graphql-shield"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1121"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:47:59Z",
    "nvd_published_at" : null
  }
}