CVE-2025-69413 Gitea's /api/v1/user endpoint has different responses for failed authentication depending on whether a username exists
An attacker can enumerate valid usernames by observing differences in API authentication error responses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-69413?
CVE-2025-69413 is a medium-severity vulnerability in Gitea Gitea, published on 1 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In Gitea before 1.25.2, /api/v1/user has different responses for failed authentication depending on whether a username exists.
Weakness: CWE-204
Which versions are affected by CVE-2025-69413?
4 open source packages ship an affected version, including code.gitea.io/gitea and gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.25.2 |
code.gitea.io/gitea Go | All versions | 1.25.2 |
code.gitea.io/gitea Go | All versions | 1.25.2 |
gitea Bitnami | All versions | 1.25.2 |
Products include Gitea Gitea.
How do I fix CVE-2025-69413?
Upgrade code.gitea.io/gitea to 1.25.2 or later.
Is CVE-2025-69413 being exploited?
There is no known exploitation of CVE-2025-69413 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2025-69413, GHSA-pc73-rj2c-wvf9, GO-2026-4274.