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

Low 3.7 Published Updated

Attackers can access admin metadata without authentication if ui.isAccessAllowed is undefined, exposing sensitive configuration data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-40027?

CVE-2023-40027 is a low-severity missing authorization vulnerability in keystonejs keystone, published on 15 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-862

Which versions are affected by CVE-2023-40027?

2 open source packages ship an affected version, including @keystone-6/core. It affects 1 product.

PackageAffectedFixed in
@keystone-6/core npmAll versions5.5.1
@keystone-6/core npmAll versions5.5.1

Products include Keystonejs Keystone.

How do I fix CVE-2023-40027?

Upgrade @keystone-6/core to 5.5.1 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2023-40027 being exploited?

There is no known exploitation of CVE-2023-40027 in the wild and no public exploit code.

Sources

Also known as GHSA-9cvc-v7wm-992c.

Is CVE-2023-40027 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free