Allocation of Resources Without Limits or Throttling Affecting github.com/go-gitea/gitea/routers/api/packages/npm package, versions <1.27.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.38% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOGITEAGITEAROUTERSAPIPACKAGESNPM-18753206
  • published13 Aug 2026
  • disclosed21 Jul 2026
  • creditTricta

Introduced: 21 Jul 2026

CVE-2026-42931  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade github.com/go-gitea/gitea/routers/api/packages/npm to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the AddPackageTag function. An attacker can cause the server to exhaust memory resources and crash by sending a large HTTP request body to the affected API endpoint, as the entire request body is read into memory without any size limitation. This can be exploited repeatedly to maintain a persistent denial of service, even if automatic restart policies are in place.

Note: This is only exploitable if the attacker has authenticated access with write permissions to a package namespace, which is granted by default to any registered user.

CVSS Base Scores

version 4.0
version 3.1