2FAuth vulnerable to stored cross-site scripting via SVG upload and direct access render
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA 2FAuth (Bubka) Fixed in 5.4.1
Timeline
- 2026-10-02 Threatist record created from CVE-2024-52597
References
More Bubka 2fauth vulnerabilities
- TI-2026-24670 2FAuth has Blind SSRF in image parameter allows internal network access and more CVSS 4.0HIGH 7.8
- TI-2024-35258 2FAuth vulnerable to Server Side Request Forgery + URI validation bypass in 2fauth /api/v1/twofaccounts/preview CVSS 3.1HIGH 7.5
- TI-2025-28827 A group deletion race condition in 2FAuth v5.5.0 causes data inconsistencies and orphaned… CVSS 3.1MEDIUM 6.5
- TI-2023-18610 Cross-Site Scripting (XSS) at Account creation in 2FAuth CVSS 3.1MEDIUM 6.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences