Reflected XSS Vulnerability in Fava Package

fava Updated 02 Oct 2025

Summary

25/07/2022
N/A
No i
Medium
6.1

CVE-2022-2523: Cross-site Scripting (XSS) - Reflected in GitHub repository beancount/fava prior to 1.22.2. Affects fava versions < dccfb6a2f4567f35ce2e9a78e24f92ebf946bc9b. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Fava is a web interface for Beancount, a double-entry accounting system. It allows users to visualize their financial data in a user-friendly manner, providing features like charts, reports, and a powerful query language. However, prior to version 1.22.2, Fava was susceptible to a reflected Cross-site Scripting (XSS) vulnerability, which could allow attackers to inject malicious scripts into web pages viewed by users.

Vulnerability Detail

The vulnerability, identified as CVE-2022-2523, arises from improper handling of user input in the Fava web interface. An attacker could exploit this flaw by crafting a malicious URL that, when accessed by a victim, would execute arbitrary JavaScript in the context of the victim's browser. This could lead to unauthorized actions, data theft, or session hijacking, posing significant risks to users' sensitive financial information.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid clicking on untrusted links or URLs that may exploit this vulnerability until they can upgrade to the patched version. Additionally, implementing Content Security Policy (CSP) headers can help mitigate the risk of XSS attacks.

Conclusion

The reflected XSS vulnerability in the Fava package poses a significant risk to users by allowing attackers to execute malicious scripts. Upgrading to version 1.22.2 or later is essential to mitigate this risk. Users should also consider monitoring their applications for vulnerabilities using tools like Vulert.

See every vulnerability recorded for fava →

Share this vulnerability

FAQ

CVE-2022-2523 is a reflected Cross-site Scripting (XSS) vulnerability found in the Fava package prior to version 1.22.2.

If you are using a version of Fava prior to 1.22.2, your installation is vulnerable to this XSS attack.

An attacker could execute malicious scripts in the context of a user's browser, potentially leading to data theft or unauthorized actions.

Yes, tools like Vulert can monitor your application for open-source vulnerabilities in real-time using just a manifest file.

As a temporary measure, avoid clicking on suspicious links and consider implementing Content Security Policy (CSP) headers to reduce risk.

Related vulnerabilities

Recent vulnerabilities recorded for fava.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback