CVE-2026-42931
Received Received - Intake

Denial of Service in NPM Package Tag Endpoint

Vulnerability report for CVE-2026-42931, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-13

Last updated on: 2026-08-13

Assigner: Gitea Limited

Description

Denial of Service via Unbounded io.ReadAll in NPM Package Tag Endpoint

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-13
Last Modified
2026-08-13
Generated
2026-08-13
AI Q&A
2026-08-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
go-gitea gitea to 1.27.0-dev (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-42931 is a Denial of Service vulnerability in Gitea software affecting versions up to 1.27.0-dev. It involves an unbounded io.ReadAll call in the NPM package tag API endpoint that reads the entire HTTP request body into memory without size limits. This causes an Out-of-Memory condition, crashing the server when the request exceeds approximately 80% of available memory.

Detection Guidance

Monitor for unusually large HTTP requests targeting the NPM package tag API endpoint. Check server logs for requests with large payloads exceeding typical sizes. Use network monitoring tools to detect repeated large requests from authenticated users.

Impact Analysis

This vulnerability allows any authenticated user with write access to crash the Gitea server by sending a single large HTTP request. The attack requires minimal bandwidth and can be repeated after server restarts. It disrupts service availability and may lead to data loss or extended downtime if not mitigated.

Mitigation Strategies

Upgrade to Gitea version 1.27.0 or later which includes fixes. Disable the package registry if not needed. Implement request size limits on the web server or reverse proxy. Restrict write access to package namespaces to only necessary users.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42931. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart