{"answers":{"affected":"2 open source packages ship an affected version, including @keystone-6/core.","exploited":"There is no known exploitation of GHSA-5fp6-4xw3-xqq3 in the wild and no public exploit code.","fix":"No fix has been published for GHSA-5fp6-4xw3-xqq3 yet. Limit exposure of the affected software until one is available.","what":"GHSA-5fp6-4xw3-xqq3 is a vulnerability in @keystone-6/core, published on 12 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-5fp6-4xw3-xqq3 and fix it if it is affected.\n\nWhat it is: GHSA-5fp6-4xw3-xqq3 is a vulnerability in @keystone-6/core, published on 12 Jun 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 GHSA-5fp6-4xw3-xqq3 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @keystone-6/core (npm): affected all versions up to 5.3.1; no fix listed\n- @keystone-6/core (npm): affected all versions up to 5.3.1; no fix listed\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/GHSA-5fp6-4xw3-xqq3/ (Markdown: https://insights.sbomify.com/GHSA-5fp6-4xw3-xqq3/index.md)","id":"GHSA-5fp6-4xw3-xqq3","markdown":"https://insights.sbomify.com/GHSA-5fp6-4xw3-xqq3/index.md","name":"GHSA-5fp6-4xw3-xqq3","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"KeystoneJS core library","requires_auth":"none","summary":"KeystoneJS uses insecure cuid identifiers by default, allowing potential prediction of IDs; developers should upgrade or configure custom identifiers.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\nThe `cuid` package used by `@keystone-6/*` and upstream dependencies is deprecated and [marked as insecure by the author](https://github.com/paralleldrive/cuid#status-deprecated-due-to-security-use-cuid2-instead).\n\nAs reported by the author\n\u003e Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead.\n\n### What are doing about this?\n- [We are waiting on Prisma](https://github.com/keystonejs/keystone/issues/8282) to add support for [`cuid2`](https://github.com/paralleldrive/cuid2)\n- Alternatively, we might default to a random string ourselves\n\n### What can I do about this?\nWe have added a work-around for users who want to provide custom identifiers in https://github.com/keystonejs/keystone/pull/8645\n\n### What if I need a `cuid`?\nThe features marked as a security vulnerability by @paralleldrive are sometimes actually needed ([as written in the README of `cuid`](https://github.com/paralleldrive/cuid#motivation)) - the problem is the inherent risks that features like this can have.\n\nYou might actually want the features of a monotonically increasing (auto-increment, k-sortable), and timestamp-based id as part of your application, and keystone should support that - but you might not want them by _default_.\nThis is why this security advisory has been accepted by me (@dcousens), we currently use cuid identifiers by default, and that should change.\n\n### Impact\nI have accepted this security advisory on the basis that we don't need this kind of identifier typically, and the need for them should be driven by an application's requirements, not a convenient default.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":false,"headline":"@keystone-6/core's bundled cuid package known to be insecure","id":"GHSA-5fp6-4xw3-xqq3","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"weak_cryptography","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["5.3.1"],"package":"@keystone-6/core","purl":null,"source":"GHSA-5fp6-4xw3-xqq3"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["5.3.1"],"package":"@keystone-6/core","purl":"pkg:npm/%40keystone-6/core","source":"GHSA-5fp6-4xw3-xqq3"}],"products":null,"published":"2023-06-12","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"KeystoneJS uses insecure cuid identifiers by default, allowing potential prediction of IDs; developers should upgrade or configure custom identifiers.","url":"https://insights.sbomify.com/GHSA-5fp6-4xw3-xqq3/"}