CVE-2023-40027 json
Conditionally missing authorization in @keystone-6/core
published 3y ago modified 4mo ago also GHSA-9cvc-v7wm-992c , EUVD-2023-2257
- cvss
- 3.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
Keystone is an open source headless CMS for Node.js — built with GraphQL and React. When `ui.isAccessAllowed` is set as `undefined`, the `adminMeta` GraphQL query is publicly accessible (no session required). This is different to the behaviour of the default AdminUI middleware, which by default will only be publicly accessible (no session required) if a `session` strategy is not defined. 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, `isAccessAllowed` is not `undefined`). This vulnerability does affect users who believed 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. This vulnerability has been patched in `@keystone-6/core` version `5.5.1`. Users are advised to upgrade. Users unable to upgrade may opt to write their own `isAccessAllowed` functionality to work-around this vulnerability.
Patch / fix
- npm @keystone-6/core 5.5.1
- keystonejs keystone 5.5.1
Is CVE-2023-40027 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
0.58% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @keystone-6/core | <5.5.1 |
5.5.1 |
Affected products
- keystonejs keystone
Classification
- Weakness
-
- CWE-862 Missing Authorization
References
-
github.com
/keystonejs/keystone/pull/8771
web, patch
-
github.com
/keystonejs/keystone/commit/650e27e6e9b42abfb94c340c8470faf61f0ff284
web, patch
-
github.com
/keystonejs/keystone/security/advisories/GHSA-9cvc-v7wm-992c
web, patch, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-40027
advisory
-
github.com
/keystonejs/keystone
package
-
github.com
/keystonejs/keystone/releases/tag/2023-08-15
web
Sources
- CVE List CVE-2023-40027
- GitHub Advisory GHSA-9cvc-v7wm-992c
- NVD CVE-2023-40027
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.