Gitea: Denial of Service via Unbounded io.ReadAll in NPM Package Tag Endpoint (CVE-2026-42931)
Gitea versions prior to 1.27.0 contain a denial of service vulnerability in the NPM package tag API endpoint. The issue arises from an unbounded io.ReadAll call that reads the entire HTTP request body into memory without size limits. Authenticated users with write access to their package namespace can exploit this by sending a large request, causing the server process to crash due to out-of-memory conditions. This crash results in a persistent denial of service that can survive automatic restarts. The vulnerability has a moderate severity with a CVSS score of 6.5. A patch is available to address this issue.
AI Analysis
Technical Summary
The vulnerability in Gitea's NPM package tag API endpoint is caused by an unbounded io.ReadAll call that reads the entire HTTP request body into memory without any size restrictions. This allows authenticated users with write access to their package namespace to send a single large request that exhausts server memory, causing the Gitea server process to crash. The resulting denial of service is persistent and can survive automatic restarts. This affects all Gitea versions prior to 1.27.0. The vulnerability is tracked as CVE-2026-42931 and has a CVSS 3.1 score of 6.5 (medium severity). Although no specific patch links are provided, the patchAvailable flag indicates that a fix exists in version 1.27.0 or later.
Potential Impact
Exploitation of this vulnerability leads to a denial of service condition by causing the Gitea server process to crash due to out-of-memory errors. This disrupts service availability persistently, as the crash can survive automatic restarts. There is no impact on confidentiality or integrity reported. The attack requires authenticated user privileges with write access to the package namespace.
Mitigation Recommendations
A patch is available to remediate this vulnerability. Users should upgrade Gitea to version 1.27.0 or later to mitigate the risk. Since no vendor advisory explicitly states otherwise, applying the official fix is the recommended mitigation. No additional mitigations are specified.
Gitea: Denial of Service via Unbounded io.ReadAll in NPM Package Tag Endpoint (CVE-2026-42931)
Description
Gitea versions prior to 1.27.0 contain a denial of service vulnerability in the NPM package tag API endpoint. The issue arises from an unbounded io.ReadAll call that reads the entire HTTP request body into memory without size limits. Authenticated users with write access to their package namespace can exploit this by sending a large request, causing the server process to crash due to out-of-memory conditions. This crash results in a persistent denial of service that can survive automatic restarts. The vulnerability has a moderate severity with a CVSS score of 6.5. A patch is available to address this issue.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Gitea's NPM package tag API endpoint is caused by an unbounded io.ReadAll call that reads the entire HTTP request body into memory without any size restrictions. This allows authenticated users with write access to their package namespace to send a single large request that exhausts server memory, causing the Gitea server process to crash. The resulting denial of service is persistent and can survive automatic restarts. This affects all Gitea versions prior to 1.27.0. The vulnerability is tracked as CVE-2026-42931 and has a CVSS 3.1 score of 6.5 (medium severity). Although no specific patch links are provided, the patchAvailable flag indicates that a fix exists in version 1.27.0 or later.
Potential Impact
Exploitation of this vulnerability leads to a denial of service condition by causing the Gitea server process to crash due to out-of-memory errors. This disrupts service availability persistently, as the crash can survive automatic restarts. There is no impact on confidentiality or integrity reported. The attack requires authenticated user privileges with write access to the package namespace.
Mitigation Recommendations
A patch is available to remediate this vulnerability. Users should upgrade Gitea to version 1.27.0 or later to mitigate the risk. Since no vendor advisory explicitly states otherwise, applying the official fix is the recommended mitigation. No additional mitigations are specified.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wwqq-x6w4-frm2
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-42931"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600ab79c2644c7f8fe24e9
Added to database: 07/22/2026, 00:11:35 UTC
Last enriched: 08/14/2026, 12:54:50 UTC
Last updated: 09/14/2026, 22:01:34 UTC
Views: 46
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.