{"id":"CVE-2022-0087","aliases":["GHSA-hrgx-7j6v-xj82"],"url":"https://o3.security/vulnerability/CVE-2022-0087","summary":"Cross-site Scripting (XSS) - Reflected in keystonejs/keystone","details":"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","published":"2022-01-11T23:20:11Z","modified":"2026-10-28T02:30:43.283057732Z","cvss":{"score":7.1,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"@keystone-6/auth","fixedVersion":"1.0.2"},{"ecosystem":"npm","name":"@keystone-next/auth","fixedVersion":null}],"fix":{"url":"https://github.com/keystonejs/keystone/commit/96bf833a23b1a0a5d365cf394467a943cc481b38","label":"keystonejs/keystone@96bf833"},"references":[{"type":"WEB","url":"https://huntr.dev/bounties/c9d7374f-2cb9-4bac-9c90-a965942f413e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0087.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0087"},{"type":"FIX","url":"https://github.com/keystonejs/keystone/commit/96bf833a23b1a0a5d365cf394467a943cc481b38"},{"type":"WEB","url":"https://github.com/keystonejs/keystone/security/advisories/GHSA-hrgx-7j6v-xj82"},{"type":"PACKAGE","url":"https://github.com/keystonejs/keystone"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:43.283057732Z"}}