---
id: CVE-2026-103667
title: >-
  Gitea's container registry served blob downloads with a `Content-Type` taken
  from the media type declared in pushed image manifests, without a
  `Content-Disposition` or restrictive content security policy
summary: >-
  Gitea's container registry served blob downloads with a `Content-Type` taken
  from the media type declared in pushed image manifests, without a
  `Content-Disposition` or restrictive content security policy. A user who can
  push container im…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: gitea
product: gitea
affected:
  - gitea < 28.0.0
patched:
  - gitea 28.0.0
published: '2026-10-06'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T02:25:29.217'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103667'
references:
  - url: 'https://blog.gitea.com/release-of-28.0.0/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/39398'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v28.0.0'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-7cq7-4v93-8wjm'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
  - cve.org
epss: 0.0019
epssPercentile: 0.08791
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-07T20:16:50.727435Z'
ingestedAt: '2026-10-06T20:16:42.498Z'
---

## Overview

Gitea's container registry served blob downloads with a `Content-Type` taken from the media type declared in pushed image manifests, without a `Content-Disposition` or restrictive content security policy. A user who can push container images can publish a blob containing HTML and JavaScript with a `text/html` media type. When a victim who is authenticated to the instance opens the blob URL in a browser, the script runs on the Gitea origin and can perform actions as the victim, such as creating API tokens.

## Affected

- `gitea < 28.0.0`

## Remediation

Upgrade past the affected range:

- `gitea 28.0.0`
