CVE-2026-103667: Gitea container registry stored XSS through blob media type

Published Oct 6, 2026
·
Updated

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 Software

1 affected component
Gitea Gitea

Event History

Oct 6, 2026
CVE Published
via MITRE·07:23 PM
Data Sourced
via MITRE·07:23 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs permission to push container images to the Gitea container registry. They can then publish a blob declared as text/html that contains malicious HTML and JavaScript.

2

What must happen for the attack to succeed?

An authenticated user must open the attacker-controlled blob URL in a browser. The supplied script then executes on the Gitea origin with the victim's authenticated session context.

3

What could an attacker do through a successful exploit?

The script can perform actions as the victim on the Gitea instance. The advisory specifically notes that it can create API tokens.

4

Are users who only pull images exposed?

Users are exposed when they open a malicious blob URL in a browser while authenticated to the affected Gitea instance. The provided information does not state that merely pulling an image triggers the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203