{"id":"CVE-2022-0087","aliases":["EUVD-2022-0620","GHSA-hrgx-7j6v-xj82"],"status":"published","title":"Cross-site Scripting (XSS) - Reflected in keystonejs/keystone","description":"keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","severity":{"version":"3.0","score":7.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0275,"percentile":0.86313,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-01-11T23:20:11Z","modified":"2026-10-28T02:30:43Z","exploits":[{"source":"nuclei","id":"CVE-2022-0087","title":"Keystone 6 Login Page - Open Redirect and Cross-Site Scripting","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0087.yaml"}],"fixes":[{"ecosystem":"npm","package":"@keystone-6/auth","fixed_in":["1.0.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@keystone-6/auth","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.2"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@keystone-next/auth","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"37.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@keystone-6/auth","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.2"}]}]},{"source":"osv","ecosystem":"npm","package":"@keystone-next/auth","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"37.0.0"}]}]}],"products":[{"vendor":"keystonejs","product":"keystone"},{"vendor":"keystonejs","product":"keystonejs/keystone"}],"references":[{"url":"https://huntr.dev/bounties/c9d7374f-2cb9-4bac-9c90-a965942f413e","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","web"]},{"url":"https://github.com/keystonejs/keystone/commit/96bf833a23b1a0a5d365cf394467a943cc481b38","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/keystonejs/keystone/security/advisories/GHSA-hrgx-7j6v-xj82","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0087","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hrgx-7j6v-xj82"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0087.json","tags":["advisory"]},{"url":"https://github.com/keystonejs/keystone","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-0087","title":"Cross-site Scripting (XSS) - Reflected in keystonejs/keystone","description":"keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","status":"published","published":"2022-01-11T23:20:11Z","modified":"2024-08-02T23:18:41.557Z","cvss":[{"version":"3.0","score":7.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:41.69911Z"}],"euvd":[{"id":"EUVD-2022-0620","description":"keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","status":"published","published":"2022-01-11T23:20:11Z","modified":"2024-08-02T23:18:41Z","cvss":[{"version":"3.0","score":7.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-03T03:26:06.635969Z"}],"ghsa":[{"id":"GHSA-hrgx-7j6v-xj82","title":"Reflected cross-site scripting (XSS) vulnerability","description":"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 \u003e= 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","status":"published","published":"2022-01-12T21:55:40Z","modified":"2023-02-03T05:03:57Z","cvss":[{"version":"3.0","score":7.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:41.967989Z"}],"nvd":[{"id":"CVE-2022-0087","description":"keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","status":"published","published":"2022-01-12T00:15:10.103Z","modified":"2026-06-17T04:19:57.193Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"3.0","score":7.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:10.836864Z"}],"osv":[{"id":"CVE-2022-0087","title":"Cross-site Scripting (XSS) - Reflected in keystonejs/keystone","description":"keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","status":"published","published":"2022-01-11T23:20:11Z","modified":"2026-10-28T02:30:43.283057732Z","cvss":[{"version":"3.0","score":7.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:22.824781Z"},{"id":"GHSA-hrgx-7j6v-xj82","title":"Reflected cross-site scripting (XSS) vulnerability","description":"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 \u003e= 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","status":"published","published":"2022-01-12T21:55:40Z","modified":"2023-11-08T04:07:28.296088Z","cvss":[{"version":"3.0","score":7.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:49.621585Z"}]}}
