CVE-2026-42931 Denial of Service via Unbounded io.ReadAll in NPM Package Tag Endpoint
Attackers can cause denial of service in Gitea by exploiting unbounded memory allocation in the NPM package tag endpoint.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-42931?
CVE-2026-42931 is a medium-severity denial of service vulnerability in Gitea Open Source Git Server, published on 13 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Denial of Service via Unbounded io.ReadAll in NPM Package Tag Endpoint
Weakness: CWE-770
Which versions are affected by CVE-2026-42931?
3 open source packages ship an affected version, including code.gitea.io/gitea and gitea.dev.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.27.0 |
code.gitea.io/gitea Go | All versions | 1.27.0 |
gitea.dev Go | All versions | 1.27.0 |
How do I fix CVE-2026-42931?
Upgrade code.gitea.io/gitea to 1.27.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-42931 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42931 exists.
Sources
Also known as GHSA-wwqq-x6w4-frm2, GO-2026-6082, MINI-84j6-jh45-c486, MINI-j36m-vgvj-3c72.