Summary
CVE-2026-63439 is an improper authentication vulnerability (CWE-287) in 2FAuth, a self-hosted web app for managing Two-Factor Authentication accounts. When the reverse proxy guard is enabled, 2FAuth trusts client-supplied identity headers without verifying that the request came from a trusted proxy. A remote, unauthenticated attacker can impersonate any existing user, including an administrator. The CVSS v3.1 base score is 9.8 (Critical).
Technical details
- Root cause: With
AUTHENTICATION_GUARD=reverse-proxy-guard, 2FAuth does not check that requests originate from a configured trusted proxy. It accepts the identity header, which isREMOTE_USERby default or a configured alternative. - Trigger conditions: The instance is configured to use the reverse proxy authentication guard and is reachable by an attacker, directly or in a way that lets client-sent headers reach the application.
- Attack vector: Network. No privileges or user interaction are required. The attacker sends a request with a forged identity header naming an existing user.
- Impact: The attacker is authenticated as that user, including an administrator. This exposes the stored 2FA secrets and management functions, with high impact on confidentiality, integrity and availability.
Affected software
- 2FAuth versions prior to 8.0.0 (only when the reverse proxy guard is enabled)
Severity
- CVSS v3.1 base score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade 2FAuth to version 8.0.0 or later.
- If you cannot patch immediately: Do not use
AUTHENTICATION_GUARD=reverse-proxy-guardon affected versions. If you do use it, make sure the application is reachable only through your trusted reverse proxy, and have the proxy strip any client-supplied identity headers. - Review access logs for unexpected authenticated sessions, particularly administrator access. Consider rotating the 2FA secrets of any accounts that may have been exposed.

