{"id":"CVE-2023-40027","published":"2023-08-15T17:45:54Z","modified":"2024-10-02T17:45:51Z","title":"Conditionally missing authorization in @keystone-6/core","vendor":"keystonejs","product":"keystone","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00663,"percentile":0.46598,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/keystonejs/keystone/security/advisories/GHSA-9cvc-v7wm-992c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/keystonejs/keystone/pull/8771","tags":["x_refsource_MISC"]},{"url":"https://github.com/keystonejs/keystone/commit/650e27e6e9b42abfb94c340c8470faf61f0ff284","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":9.32},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"keystonejs","affectedVersions":[{"vendor":"keystonejs","product":"keystone","versions":["< 5.5.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-02T17:45:13.788780Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@keystone-6/core","vulnerableRanges":["<5.5.1"],"patched":["5.5.1"],"from":["GHSA-9cvc-v7wm-992c"],"provenance":"source"}],"summary":{"text":"The Keystone headless CMS in the @keystone-6/core package exposes its adminMeta GraphQL query without authorization when ui.isAccessAllowed is left undefined, which is the component where the flaw lives. An unauthenticated remote attacker can query adminMeta without a session, but the attack only applies to deployments where isAccessAllowed is undefined, not to those using @keystone-6/auth or a custom isAccessAllowed, and it is affected by specific configuration choices.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:45Z"},"euvd":{"id":"EUVD-2023-2257","exploited":false,"provenance":"source"}}