{"answers":{"affected":"2 open source packages ship an affected version, including @keystone-6/auth. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-34247 in the wild and no public exploit code.","fix":"Upgrade @keystone-6/auth to 7.0.0 or later.","what":"CVE-2023-34247 is a medium-severity vulnerability in keystonejs keystone, published on 13 Jun 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-34247 and fix it if it is affected.\n\nWhat it is: CVE-2023-34247 is a medium-severity vulnerability in keystonejs keystone, published on 13 Jun 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-34247 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @keystone-6/auth (npm): affected all versions; fixed in 7.0.0\n- @keystone-6/auth (npm): affected all versions; fixed in 7.0.0\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-34247/ (Markdown: https://insights.sbomify.com/CVE-2023-34247/index.md)","id":"CVE-2023-34247","markdown":"https://insights.sbomify.com/CVE-2023-34247/index.md","name":"CVE-2023-34247","record":{"aliases":["GHSA-jqxr-vjvv-899m"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js CMS library","requires_auth":"low_privilege","summary":"Attackers can redirect users to malicious external sites by bypassing the redirect filter in the Keystone auth package.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"keystone","vendor":"keystonejs"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"Keystone is a content management system for Node.JS. There is an open redirect in the `@keystone-6/auth` package versions 7.0.0 and prior, where the redirect leading `/` filter can be bypassed. Users may be redirected to domains other than the relative host, thereby it might be used by attackers to re-direct users to an unexpected location. To mitigate this issue, one may apply a patch from pull request 8626 or avoid using the `@keystone-6/auth` package.","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":"@keystone-6/auth Open Redirect vulnerability","id":"CVE-2023-34247","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"open_redirect","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"benjjvi/PyBB may send unsanitized request to SQL database","id":"CVE-2023-34249"},"packages":[{"ecosystem":"npm","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"@keystone-6/auth","purl":null,"source":"GHSA-jqxr-vjvv-899m"},{"ecosystem":"npm","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"@keystone-6/auth","purl":"pkg:npm/%40keystone-6/auth","source":"GHSA-jqxr-vjvv-899m"}],"prev":{"headline":"Doorkeeper Improper Authentication vulnerability","id":"CVE-2023-34246"},"products":["keystone"],"published":"2023-06-13","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":"2025-01-03","vendors":["keystonejs"]},"summary":"Attackers can redirect users to malicious external sites by bypassing the redirect filter in the Keystone auth package.","url":"https://insights.sbomify.com/CVE-2023-34247/"}