# CVE-2024-52597: 2FAuth vulnerable to stored cross-site scripting via SVG upload and direct access render

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-20T14:01:37.062Z
- Modified: 2026-06-17T08:07:31.343Z
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Bubka 2FAuth: < 5.4.1; before 5.4.1
- 2fauth 2fauth: before 5.4.1

## References

- <https://github.com/Bubka/2FAuth/security/advisories/GHSA-q5p4-6q4v-gqg3> (exploit, vendor-advisory)
- <https://github.com/Bubka/2FAuth/commit/93c508e118f483f3c93ac36e1f91face95af642d> (patch)

## Sources

- CVE List: [CVE-2024-52597](https://www.cve.org/CVERecord?id=CVE-2024-52597), CVE Terms of Use, modified 2024-11-20
- NVD: [CVE-2024-52597](https://nvd.nist.gov/vuln/detail/CVE-2024-52597), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52597 · Whole record: https://cve.day/CVE-2024-52597.json · Rebuilt by cve.day 2026-11-25T22:58:48.885Z
