CVE-2023-40027 Conditionally missing authorization in @keystone-6/core
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| keystone-6 @keystone-6/core(npm) | < 5.5.1 | 5.5.1 | Fixed |
| keystonejs @keystonejs/keystone | < 5.5.1; = < 5.5.1 | 5.5.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| keystone-6 @keystone-6/core(npm) | < 5.5.1 | 5.5.1 |
| keystonejs @keystonejs/keystone | = < 5.5.1 | No fix listed |
| keystonejs @keystonejs/keystone | < 5.5.1 | 5.5.1 |
References
- https://github.com/keystonejs/keystone/security/advisories/GHSA-9cvc-v7wm-992c patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/keystonejs/keystone/pull/8771 patch
- https://github.com/keystonejs/keystone/commit/650e27e6e9b42abfb94c340c8470faf61f0ff284 patch
- github.com
- github.com
- github.com product