Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea: Internal API HTTP client hardcodes InsecureSkipVerify:true with no config override (CVE-2026-54481)

0
High
Published: 07/21/2026 (07/21/2026, 20:41:25 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

Description

Gitea's internal API HTTP client hardcodes TLSClientConfig.InsecureSkipVerify=true without any configuration override, allowing it to accept any TLS certificate when communicating over HTTPS. This affects deployments where internal API calls are made over a network (split-host or multi-pod topologies) rather than loopback. An attacker positioned on the internal network segment can perform a man-in-the-middle attack to capture the static high-privilege INTERNAL_TOKEN used for authenticating all internal API endpoints. This token grants access to sensitive operations such as server control, SSH key authorization, git command execution, and more. The vulnerability has existed since 2017 and affects all versions prior to 1.27.0. Severity depends on deployment configuration, being high for split-host HTTPS setups and low or informational for single-host loopback deployments.

CVSS v3.1

Score 7.5high

Attack Vector
Adjacent Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:49:16 UTC

Technical Analysis

The internal API HTTP client in Gitea (modules/private/internal.go) sets TLSClientConfig.InsecureSkipVerify to true with no option to disable this behavior, unlike other outbound TLS clients in Gitea which allow secure-by-default configurations. When LOCAL_ROOT_URL is set to an HTTPS URL pointing to a non-loopback host, the internal API client accepts any TLS certificate, including self-signed or invalid ones. This enables an attacker with network access to intercept and decrypt internal API calls, capturing the static INTERNAL_TOKEN used as the sole authentication mechanism for all internal API endpoints. These endpoints control critical functions such as server shutdown, SSH key authorization, git command execution, and more. The internal API client runs as a separate process and communicates over a real network socket, making interception feasible in split-host or multi-pod deployments. The vulnerability has been present since 2017 and affects all Gitea versions before 1.27.0. No official patch or remediation is indicated in the provided data.

Potential Impact

An attacker with on-path access to the internal network segment where Gitea's internal API HTTPS calls occur can intercept and capture the static INTERNAL_TOKEN. This token is the sole authentication for all internal API endpoints, granting the attacker high-privilege access to sensitive operations including server shutdown/restart, SSH key authorization, git command execution, repository hooks, mail sending, and runner-token generation. In split-host or multi-pod deployments using HTTPS for internal API communication, this vulnerability is high severity. In single-host or loopback deployments, the risk is low or informational since local access is required to intercept the token, which is already exposed locally.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, operators should avoid configuring Gitea's internal API communication over HTTPS to non-loopback hosts in split-host or multi-pod topologies. Using loopback or Unix socket communication for internal API calls mitigates the risk. Monitor vendor channels for updates addressing this hardcoded InsecureSkipVerify setting and consider restricting network access to internal API endpoints to trusted hosts only.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-94v3-77j7-vm48
Osv Schema Version
1.4.0
Aliases
["CVE-2026-54481"]
Ecosystems
["Go"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a600ab79c2644c7f8fe24d1

Added to database: 07/22/2026, 00:11:35 UTC

Last enriched: 07/22/2026, 00:49:16 UTC

Last updated: 07/31/2026, 12:28:12 UTC

Views: 11

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses