What’s Vulnerable › Vulnerabilities
CVE-2024-52597: 2FAuth vulnerable to stored cross-site scripting via SVG upload and direct access render
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-11-20 · updated 2026-06-17
- Weakness: CWE-79
Description
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Versions prior to 5.4.1 are vulnerable to stored cross-site scripting due to improper headers in direct access to uploaded SVGs. The application allows uploading images in several places. One of the accepted types of image is SVG, which allows JS scripting. Therefore, by uploading a malicious SVG which contains JS code, an attacker which is able to drive a victim to the uploaded image could compromise that victim's session and access to their tokens. Version 5.4.1 contains a patch for the issue.
Affected products
- Bubka 2FAuth: before 5.4.1 — fixed in 5.4.1
How to fix
Upgrade to a fixed version: Bubka 2FAuth 5.4.1. Check the vendor advisory for mitigations.
References
- https://github.com/Bubka/2FAuth/commit/93c508e118f483f3c93ac36e1f91face95af642d
- https://github.com/Bubka/2FAuth/security/advisories/GHSA-q5p4-6q4v-gqg3
Get alerted when CVE-2024-52597 or the next vulnerability affects your stack