CVE Catalog

CVE-2026-103667

MediumCVSS 5.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

6th percentile - higher than 6% of all known CVEs

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 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.

Risk Assessment

Risk of XSS attack in the Gitea context, enabling session hijacking of authenticated users and unauthorized actions such as creating API tokens, potentially leading to account and data compromise.

Recommendation

Update Gitea to a version that sets appropriate `Content-Disposition` headers and content security policy for blob downloads. Restrict image pushing to trusted users.

Other vulnerabilities in Gitea

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS