GHSA-hx78-272p-mqqh: Graphql shield Authorization Bypass Vulnerability
LOWGHSA-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.
GHSA-hx78-272p-mqqh at a Glance
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.
npm install graphql-shield@6.0.6
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
GHSA-hx78-272p-mqqh Affected Graphql shield Versions
1 component(s)| 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?
Which Graphql shield versions are affected?
What version fixes GHSA-hx78-272p-mqqh?
Is graphql-shield affected?
What CWE is associated with GHSA-hx78-272p-mqqh?
How can I check npm dependencies for GHSA-hx78-272p-mqqh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}