{"answers":{"affected":"2 open source packages ship an affected version, including @keystone-6/core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-40027 in the wild and no public exploit code.","fix":"Upgrade @keystone-6/core to 5.5.1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-40027 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2023-40027 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @keystone-6/core (npm): affected all versions; fixed in 5.5.1\n- @keystone-6/core (npm): affected all versions; fixed in 5.5.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-40027/ (Markdown: https://insights.sbomify.com/CVE-2023-40027/index.md)","id":"CVE-2023-40027","markdown":"https://insights.sbomify.com/CVE-2023-40027/index.md","name":"CVE-2023-40027","record":{"aliases":["GHSA-9cvc-v7wm-992c"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Keystone CMS","requires_auth":"none","summary":"Attackers can access admin metadata without authentication if ui.isAccessAllowed is undefined, exposing sensitive configuration data.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"keystone","vendor":"keystonejs"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Conditionally missing authorization in @keystone-6/core","id":"CVE-2023-40027","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"Arbitrary file read via symlinks in Ghost","id":"CVE-2023-40028"},"packages":[{"ecosystem":"npm","fixed":["5.5.1"],"introduced":["0"],"last_affected":[],"package":"@keystone-6/core","purl":null,"source":"GHSA-9cvc-v7wm-992c"},{"ecosystem":"npm","fixed":["5.5.1"],"introduced":["0"],"last_affected":[],"package":"@keystone-6/core","purl":"pkg:npm/%40keystone-6/core","source":"GHSA-9cvc-v7wm-992c"}],"prev":{"headline":"Path traversal allows leaking out-of-bound Helm charts from Argo CD repo-server","id":"CVE-2023-40026"},"products":["keystone"],"published":"2023-08-15","related":[{"cvss_score":9.8,"headline":"NODE_ENV in Keystone defaults to development with esbuild","id":"CVE-2022-39382","kev_date_added":null,"published":"2022-11-03"},{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2022-29354","kev_date_added":null,"published":"2022-05-16"},{"cvss_score":9.1,"headline":"@keystone-6/core vulnerable to field-level access-control bypass for multiselect field","id":"CVE-2022-39322","kev_date_added":null,"published":"2022-10-25"},{"cvss_score":8.8,"headline":"Cross-Site Request Forgery (CSRF) in keystone","id":"CVE-2017-16570","kev_date_added":null,"published":"2017-11-06"},{"cvss_score":8.8,"headline":"Keystone is vulnerable to CSV injection","id":"CVE-2017-15879","kev_date_added":null,"published":"2017-10-24"},{"cvss_score":7.5,"headline":"Authentication Weakness in keystone","id":"CVE-2015-9240","kev_date_added":null,"published":"2018-05-29"},{"cvss_score":7.1,"headline":"Cross-site Scripting (XSS) - Reflected in keystonejs/keystone","id":"CVE-2022-0087","kev_date_added":null,"published":"2022-01-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-02","vendors":["keystonejs"]},"summary":"Attackers can access admin metadata without authentication if ui.isAccessAllowed is undefined, exposing sensitive configuration data.","url":"https://insights.sbomify.com/CVE-2023-40027/"}