{"id":"CVE-2022-0087","aliases":["CVE-2022-0087","GHSA-hrgx-7j6v-xj82"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS) - Reflected in keystonejs/keystone","summary":"keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","summarySource":"cvelist","descriptions":[{"lang":"en","text":"keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","source":"cvelist"},{"lang":"en","text":"This security advisory relates to a capability for an attacker to exploit a reflected cross-site scripting vulnerability when using the `@keystone-6/auth` package.\n\n#### Impact\nThe vulnerability can impact users of the administration user interface when following an untrusted link to the `signin` or `init` page.\nThis is a targeted attack and may present itself in the form of phishing and or chained in conjunction with some other vulnerability.\n\n## Vulnerability mitigation\nPlease upgrade to `@keystone-6/auth >= 1.0.2`, where this vulnerability has been closed.\nIf you are using `@keystone-next/auth`,  we **strongly** recommend you upgrade to `@keystone-6`.\n\n### Workarounds\nIf for some reason you cannot upgrade the dependencies in software, you could alternatively\n\n- disable the administration user interface, or \n- if using a reverse-proxy, strip query parameters when accessing the administration interface\n\n### References\nhttps://owasp.org/www-community/attacks/xss/\n\nThanks to Shivansh Khari (@Shivansh-Khari) for discovering and reporting this vulnerability","format":"markdown","source":"ghsa"},{"lang":"es","text":"keystone es vulnerable a una Neutralización Inapropiada de Entradas Durante la Generación de Páginas Web (\"Cross-site Scripting\")","source":"nvd"}],"published":"2022-01-11T23:20:11.000Z","modified":"2026-06-17T04:19:57.193Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"@keystone-6/auth@1.0.2","status":"affected"}],"vendor":"keystonejs","product":"keystonejs/keystone","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.2"}],"ecosystem":"npm","package":"@keystone-6/auth","purl":"pkg:npm/%40keystone-6/auth","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"37.0.0"}],"ecosystem":"npm","package":"@keystone-next/auth","purl":"pkg:npm/%40keystone-next/auth","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.2"}],"vendor":"keystonejs","product":"keystone","cpe":"cpe:2.3:a:keystonejs:keystone:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/c9d7374f-2cb9-4bac-9c90-a965942f413e","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keystonejs/keystone/commit/96bf833a23b1a0a5d365cf394467a943cc481b38","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keystonejs/keystone/security/advisories/GHSA-hrgx-7j6v-xj82","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0087","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keystonejs/keystone","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0087","url":"https://www.cve.org/CVERecord?id=CVE-2022-0087","licence":"CVE Terms of Use","modified":"2024-08-02T23:18:41.557Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hrgx-7j6v-xj82","url":"https://github.com/advisories/GHSA-hrgx-7j6v-xj82","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:28.296Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0087","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0087","licence":"Public domain","modified":"2026-06-17T04:19:57.193Z"}],"updatedAt":"2026-11-25T22:58:09.216Z","epss":{"score":0.0275,"percentile":0.86605,"date":"2026-12-01T12:00:22.000Z"}}