Authorization Bypass in graphql-shield

graphql-shield Updated 02 Oct 2025

Summary

03/09/2020
LOW
Yes i
Low
Not published

GHSA-hx78-272p-mqqh: Authorization Bypass in graphql-shield. Affects graphql-shield versions < 6.0.6. Fixed in 6.0.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package graphql-shield is an authorization library for GraphQL servers. It provides a way to define and enforce permissions for GraphQL operations. By specifying rules, developers can control access to certain data or actions within their GraphQL API. However, versions prior to 6.0.6 of graphql-shield are vulnerable to an Authorization Bypass.

Vulnerability Detail

The vulnerability in graphql-shield arises from the use of cryptographically insecure functions to generate keys for rule caching. The caching option 'no_cache' can result in incorrect caching of rules, allowing attackers to access information they should not have access to in the event of a key collision. This can lead to unauthorized access to sensitive data or actions within the GraphQL API.

How To Fix

Latest published version: 7.6.5 as of 22 Oct 2026

npm install graphql-shield@7.6.5

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.0.6

This is the first release that contains the fix.

npm install graphql-shield@6.0.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

In conclusion, the vulnerability in graphql-shield allows for an Authorization Bypass, potentially leading to unauthorized access to sensitive data or actions within the GraphQL API. It is recommended to upgrade to version 6.0.6 or later to fix this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for graphql-shield →

Share this vulnerability

FAQ

graphql-shield is an authorization library for GraphQL servers that allows developers to define and enforce permissions for GraphQL operations.

Versions of graphql-shield prior to 6.0.6 are affected by this vulnerability.

This vulnerability can allow attackers to bypass authorization and gain access to sensitive data or actions within the GraphQL API.

To fix this vulnerability, you should upgrade to version 6.0.6 or later of graphql-shield.

No specific workaround has been mentioned for this vulnerability.

How To Fix

Latest published version: 7.6.5 as of 22 Oct 2026

npm install graphql-shield@7.6.5

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.0.6

This is the first release that contains the fix.

npm install graphql-shield@6.0.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback