# CVE-2023-40027: Conditionally missing authorization in @keystone-6/core

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2023-08-15T17:45:54.439Z
- Modified: 2026-06-17T06:15:49.327Z
- Also known as: GHSA-9cvc-v7wm-992c
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- keystonejs keystone: < 5.5.1; before 5.5.1
- @keystone-6/core (npm): before 5.5.1

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/keystonejs/keystone/security/advisories/GHSA-9cvc-v7wm-992c> (patch, vendor-advisory, web)
- <https://github.com/keystonejs/keystone/pull/8771> (patch, web)
- <https://github.com/keystonejs/keystone/commit/650e27e6e9b42abfb94c340c8470faf61f0ff284> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40027> (advisory)
- <https://github.com/keystonejs/keystone> (package)
- <https://github.com/keystonejs/keystone/releases/tag/2023-08-15> (web)

## Sources

- CVE List: [CVE-2023-40027](https://www.cve.org/CVERecord?id=CVE-2023-40027), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-9cvc-v7wm-992c](https://github.com/advisories/GHSA-9cvc-v7wm-992c), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-40027](https://nvd.nist.gov/vuln/detail/CVE-2023-40027), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40027 · Whole record: https://cve.day/CVE-2023-40027.json · Rebuilt by cve.day 2026-11-25T22:58:27.142Z
