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

- Severity: Medium 6.9 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-01T14:12:23.000Z
- Modified: 2026-06-17T04:42:10.387Z
- Also known as: GHSA-6hcj-qrw3-m66q, PYSEC-2022-246
- Weaknesses: CWE-79
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- beancount beancount/fava: from unspecified before 1.22.3
- fava (PyPI): before 1.22.3; before 68bbb6e39319deb35ab9f18d0b6aa9fa70472539
- fava_project fava: before 1.22.3

## Every score

- @huntrdev: CVSS:3.0 6.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.dev/bounties/8705800d-cf2f-433d-9c3e-dbef6a3f7e08> (exploit, patch, third-party-advisory, web)
- <https://github.com/beancount/fava/commit/68bbb6e39319deb35ab9f18d0b6aa9fa70472539> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-2589> (advisory)
- <https://github.com/advisories/GHSA-6hcj-qrw3-m66q> (advisory)
- <https://github.com/beancount/fava> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/fava/PYSEC-2022-246.yaml> (web)

## Sources

- CVE List: [CVE-2022-2589](https://www.cve.org/CVERecord?id=CVE-2022-2589), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-6hcj-qrw3-m66q](https://github.com/advisories/GHSA-6hcj-qrw3-m66q), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2022-2589](https://nvd.nist.gov/vuln/detail/CVE-2022-2589), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-246](https://osv.dev/vulnerability/PYSEC-2022-246), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-2589 · Whole record: https://cve.day/CVE-2022-2589.json · Rebuilt by cve.day 2026-11-25T22:58:13.335Z
