CVE-2022-2523 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-2523?
CVE-2022-2523 is a high-severity cross-site scripting vulnerability in beancount/fava, published on 25 Jul 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.2.
Weakness: CWE-79
Which versions are affected by CVE-2022-2523?
3 open source packages ship an affected version, including fava. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
fava PyPI | All versions | 1.22.2 |
fava PyPI | All versions | 1.22.2 |
fava PyPI | All versions | 1.22.2 |
Products include Fava Project Fava.
How do I fix CVE-2022-2523?
Upgrade fava to 1.22.2 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-2523 being exploited?
There is no known exploitation of CVE-2022-2523 in the wild and no public exploit code.
Other vulnerabilities in beancount/fava
Sources
Also known as DEBIAN-CVE-2022-2523, GHSA-q8hg-3vqv-f8v3, PYSEC-2022-240, UBUNTU-CVE-2022-2523.