CVE-2022-2514 Cross-site Scripting (XSS) - Reflected in beancount/fava

High 8.0 Published Updated

Reflected XSS in Fava allows attackers to execute arbitrary scripts via unescaped error messages in time and filter parameters.

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-2514?

CVE-2022-2514 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

The time and filter parameters in Fava prior to v1.22 are vulnerable to reflected XSS due to the lack of escaping of error messages which contained the parameters in verbatim.

Weakness: CWE-79

Which versions are affected by CVE-2022-2514?

3 open source packages ship an affected version, including fava. It affects 1 product.

PackageAffectedFixed in
fava PyPIAll versions1.22
fava PyPIAll versions1.22
fava PyPIAll versions1.22

Products include Fava Project Fava.

How do I fix CVE-2022-2514?

Upgrade fava to 1.22 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-2514 being exploited?

There is no known exploitation of CVE-2022-2514 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-2514, GHSA-xrf4-39fm-j5f2, PYSEC-2022-239, UBUNTU-CVE-2022-2514.

Is CVE-2022-2514 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free