Improper Certificate Validation in Gitea - CVE-2026-54481
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information and compromise internal API functionality.
The vulnerability exists due to improper certificate validation in modules/private/internal.go when handling internal API HTTPS connections to a non-loopback target. A remote attacker can perform a man-in-the-middle attack and capture the internal authentication token to disclose sensitive information and compromise internal API functionality.
The issue is exposed in split-host or multi-pod deployments where LOCAL_ROOT_URL uses HTTPS to a non-loopback endpoint, and captured tokens can be replayed against /api/internal/* endpoints on the main HTTP listener.