← Vulnerability feed

Vulnerability record · CVE-2023-40027 · published 15 August 2023

CVE-2023-40027: Keystonejs keystone missing authorization vulnerability

Keystonejs · Keystone

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.

5.3 CVSS 3.1 Medium EPSS 0.58% · top 54.6% CWE-862 · Missing authorization
5.3CVSS 3.1 base score
0.58%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-40027 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-39382Keystonejs keystone injection vulnerabilityKeystone is a headless CMS for Node.js — built with GraphQL and React.`@keystone-6/[email protected] || 3.0.1` users that use `NODE_ENV` to trigger security…EPSS 1.6%9.8CVE-2022-39322Keystonejs keystone improper authorization vulnerability@keystone-6/core is a core package for Keystone 6, a content management system for Node.js. Starting with version 2.2.0 and prior to version 2.3.1, u…EPSS 1.2%9.8CVE-2022-29354Keystonejs keystone unrestricted file upload vulnerabilityAn arbitrary file upload vulnerability in the file upload module of Keystone v4.2.1 allows attackers to execute arbitrary code via a crafted file.EPSS 2.4%8.8CVE-2017-16570Keystonejs keystone cross-site request forgery vulnerabilityKeystoneJS before 4.0.0-beta.7 allows application-wide CSRF bypass by removing the CSRF parameter and value, aka SecureLayer7 issue number SL7_KEYJS_…EPSS 2.2%8.8CVE-2017-15879Keystonejs keystone improper input validation vulnerabilityCSV Injection (aka Excel Macro Injection or Formula Injection) exists in admin/server/api/download.js and lib/list/getCSVData.js in KeystoneJS before…EPSS 7.2%7.5CVE-2015-9240Keystonejs keystone vulnerabilityDue to a bug in the the default sign in functionality in the keystone node module before 0.3.16, incomplete email addresses could be matched. A corre…EPSS 0.89%6.1CVE-2022-0087Keystonejs keystone cross-site scripting vulnerabilitykeystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')EPSS 2.6%6.1CVE-2017-15878Keystonejs keystone cross-site scripting vulnerabilityA cross-site scripting (XSS) vulnerability exists in fields/types/markdown/MarkdownType.js in KeystoneJS before 4.0.0-beta.7 via the Contact Us featu…EPSS 3.4%

Source: NIST National Vulnerability Database (record CVE-2023-40027), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.