CVE-2026-25946

Gitea OpenID discovery server-side request forgery

Published Oct 14, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
When OpenID sign-in is enabled, Gitea accepts a user-supplied OpenID URL and performs discovery requests without validating the destination against internal network addresses. An unauthenticated remote attacker can cause the server to contact loopback or private-network HTTP services. This can expose internal service behavior and enable interaction with resources that are not directly reachable by the attacker.

Analysis

AI-generated

Technical impact

Gitea allows a user to supply an arbitrary OpenID URL when OpenID sign‑in is enabled. The server performs discovery requests to that URL without validating the target against internal or private address ranges. An unauthenticated attacker can therefore cause the Gitea server to reach loopback or private‑network HTTP services, revealing internal service responses and enabling interaction with resources that would otherwise be unreachable. This flaw is a classic Server‑Side Request Forgery identified as CWE‑918, allowing attackers to gather internal network information or potentially reach internal services for further exploitation.

Affected Systems

The vulnerability affects all Gitea installations that have OpenID sign‑in enabled. No specific version ranges are supplied in the CVE record, so any Gitea deployment running the affected code is potentially vulnerable until a patch is applied.

Risk and Exploitability

The CVSS score of 5.3 classifies the flaw as moderate. The EPSS score is 0.00408 (~0.4%). The vulnerability is not currently listed in CISA’s KEV catalog, suggesting limited exploitation at present. Nevertheless, the flaw enables a remote attacker to trigger outbound connections to internal hosts, which could expose sensitive data or provide a foothold for additional attacks. The required conditions are minimal: the target must allow OpenID authentication and the attacker must supply a crafted OpenID URL. The attack rationale is straightforward: submit a malicious URL, cause the server to reach a private resource, and read the response. This potential for internal discovery warrants prompt mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Gitea to the latest release that contains the fix for CVE‑2026‑25946 (or apply the patch applied in pull request 36729).
  • If OpenID sign‑in is not disable it to eliminate the attack surface.
  • Restrict outbound traffic from the Gitea host to legitimate destinations—e.g., whitelist only trusted external services—to prevent the server from reaching internal network addresses.

Generated by OpenCVE AI on October 15, 2026 at 20:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description When OpenID sign-in is enabled, Gitea accepts a user-supplied OpenID URL and performs discovery requests without validating the destination against internal network addresses. An unauthenticated remote attacker can cause the server to contact loopback or private-network HTTP services. This can expose internal service behavior and enable interaction with resources that are not directly reachable by the attacker.
Title Gitea OpenID discovery server-side request forgery
Weaknesses CWE-918
References
Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 14, 2026, 3:51 PM
Reserved
Feb 22, 2026, 3:13 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 14, 2026, 4:17 PM