CVE-2022-2589 Cross-site Scripting (XSS) - Reflected in beancount/fava
Reflected Cross-Site Scripting in Fava allows attackers to execute arbitrary scripts in victim browsers, potentially leading to session hijacking or data theft.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-2589?
CVE-2022-2589 is a medium-severity cross-site scripting vulnerability in beancount/fava, published on 1 Aug 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cross-site Scripting (XSS) - Reflected in GitHub repository beancount/fava prior to 1.22.3.
Weakness: CWE-79
Which versions are affected by CVE-2022-2589?
3 open source packages ship an affected version, including fava. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
fava PyPI | All versions | 1.22.3 |
fava PyPI | All versions | 1.22.3 |
fava PyPI | All versions | 1.22.3 |
Products include Fava Project Fava.
How do I fix CVE-2022-2589?
Upgrade fava to 1.22.3 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-2589 being exploited?
There is no known exploitation of CVE-2022-2589 in the wild and no public exploit code.
Other vulnerabilities in beancount/fava
Sources
Also known as DEBIAN-CVE-2022-2589, GHSA-6hcj-qrw3-m66q, PYSEC-2022-246, UBUNTU-CVE-2022-2589.