GHSA-hx78-272p-mqqh Authorization Bypass in graphql-shield

Not scored Published

Attackers can bypass authorization checks in graphql-shield due to insecure caching keys, potentially accessing unauthorized data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-hx78-272p-mqqh?

GHSA-hx78-272p-mqqh is an authentication bypass vulnerability in graphql-shield, published on 3 Sep 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Which versions are affected by GHSA-hx78-272p-mqqh?

2 open source packages ship an affected version, including graphql-shield.

PackageAffectedFixed in
graphql-shield npmAll versions6.0.6
graphql-shield npmAll versions6.0.6

How do I fix GHSA-hx78-272p-mqqh?

Upgrade graphql-shield to 6.0.6 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is GHSA-hx78-272p-mqqh being exploited?

There is no known exploitation of GHSA-hx78-272p-mqqh in the wild and no public exploit code.

Sources

Is GHSA-hx78-272p-mqqh in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free