Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS05Y3ZjLXY3d20tOTkyY84AA1Uh
When `ui.isAccessAllowed` is `undefined`, the `adminMeta` GraphQL query is publicly accessible
Summary
When ui.isAccessAllowed
is undefined
, the adminMeta
GraphQL query is publicly accessible, that is to say, no session is required for the query.
This is different to the behaviour of the default AdminUI middleware, which by default will only be publicly accessible if a session
strategy is not defined.
Impact
This vulnerability does not affect developers using the @keystone-6/auth
package, or any users that have written their own ui.isAccessAllowed
(that is to say, you are unaffected if ui.isAccessAllowed
is defined).
This vulnerability does affect developers who thought that their session
strategy will, by default, enforce that adminMeta
is inaccessible by the public in accordance with that strategy; akin to the behaviour of the AdminUI middleware.
Patches
This vulnerability has been patched in @keystone-6/core
version 5.5.1
.
Workarounds
You can opt to write your own isAccessAllowed
to work-around this vulnerability.
References
Pull request https://github.com/keystonejs/keystone/pull/8771
Permalink: https://github.com/advisories/GHSA-9cvc-v7wm-992cJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS05Y3ZjLXY3d20tOTkyY84AA1Uh
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: about 1 year ago
CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS Percentage: 0.00066
EPSS Percentile: 0.30509
Identifiers: GHSA-9cvc-v7wm-992c, CVE-2023-40027
References:
- https://github.com/keystonejs/keystone/security/advisories/GHSA-9cvc-v7wm-992c
- https://nvd.nist.gov/vuln/detail/CVE-2023-40027
- https://github.com/keystonejs/keystone/pull/8771
- https://github.com/keystonejs/keystone/commit/650e27e6e9b42abfb94c340c8470faf61f0ff284
- https://github.com/keystonejs/keystone/releases/tag/2023-08-15
- https://github.com/advisories/GHSA-9cvc-v7wm-992c
Blast Radius: 11.3
Affected Packages
npm:@keystone-6/core
Dependent packages: 37Dependent repositories: 133
Downloads: 80,106 last month
Affected Version Ranges: < 5.5.1
Fixed in: 5.5.1
All affected versions: 1.0.0, 1.0.1, 1.1.0, 1.1.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 4.0.0, 4.0.1, 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.3.1, 5.3.2, 5.4.0, 5.5.0
All unaffected versions: 5.5.1, 5.6.0, 5.7.0, 5.7.1, 5.7.2, 5.8.0, 6.0.0, 6.1.0, 6.2.0, 6.3.0, 6.3.1