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.
Published: 2026-10-14
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Server‑Side Request Forgery (SSRF)
Action: Apply Patch
AI Analysis

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.

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

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

History

Wed, 14 Oct 2026 16:30:00 +0000

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'}


Wed, 14 Oct 2026 14:45:00 +0000

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

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-14T15:51:01.633Z

Reserved: 2026-02-22T15:13:33.639Z

Link: CVE-2026-25946

cve-icon Vulnrichment

Updated: 2026-10-14T15:50:53.475Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:19.393

Modified: 2026-10-14T16:17:45.377

Link: CVE-2026-25946

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T20:30:15Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)