/

CVE-2026-82289

Severity:

HIGH RISK

(7.4)

Server-Side Request Forgery (CWE-918) in Gitingest Host Validation

CVE-2026-82289

Deferred

Vulnerability type

Category:

Server-Side Request Forgery

CWE:

CWE-918

Impact:

Unauthorized outbound requests and potential credential disclosure

Severity:

HIGH RISK

(7.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Gitingest improperly validates hostnames and may accept attacker-controlled domains that merely use trusted-looking prefixes such as "git.", "gitlab.", or "github.". An attacker who can submit a crafted URL may cause the server to connect to an arbitrary host and potentially disclose GitHub personal access tokens sent through HTTP basic authentication.

Affected context

The vulnerability occurs in deployments of Gitingest where user-supplied URLs are passed through the _validate_host logic before outbound Git or repository access. Risk increases when hostname acceptance is based on string prefixes rather than exact membership in a trusted-host list, and when authentication credentials are automatically attached to requests sent to the resulting destination.

Exploit preconditions

  • Attack surface: URL or repository-fetch functionality that initiates outbound

HTTP requests

  • Required access: Ability to submit or influence a URL processed by Gitingest - Trigger point: Hostname validation followed by the outbound request - Why exploitation is possible: Prefix-based validation can treat an

attacker-controlled hostname as trusted without confirming membership in the

approved-host list; credentials may then be sent to that destination

Why this happens

The underlying bug is insufficient hostname validation. The application treats trusted-looking prefixes as adequate evidence that a destination is approved, rather than comparing the normalized hostname against an explicit allowlist or applying equivalent strict validation. This maps to CWE-918, Server-Side Request Forgery, because attacker-influenced input controls a server-side network request and may reach unintended hosts.

Potential impact

  • An attacker may cause outbound requests to arbitrary external hosts.
  • GitHub personal access tokens may be disclosed through HTTP basic credentials.
  • The application could be used to reach internal or otherwise restricted services.
  • Sensitive response data or network metadata could be exposed.
  • The vulnerable service may be abused as a proxy for further attacks.

General mitigation guidance

Mitigation generally focuses on making outbound destination selection deny-by-default and independent of attacker-controlled naming patterns. Secure-by-default designs commonly require exact, normalized hostname membership in a maintained allowlist, reject ambiguous hostname forms, and avoid forwarding credentials unless the destination has been independently verified. Network egress controls, restricted DNS and routing behavior, and least-privilege service identities can reduce residual impact. Input trust should be minimized by separating repository identifiers from arbitrary URLs and by validating destinations before constructing authenticated requests.

How teams detect issues like this

Detection approaches include static analysis for user-controlled URLs reaching HTTP client calls, review rules that flag prefix-only hostname checks, and inspection of code paths that attach tokens or basic-auth credentials to outbound requests. Code review should verify exact allowlist comparisons, hostname normalization, redirect handling, and credential scoping. Runtime monitoring can alert on requests to destinations outside approved domains, and policy enforcement can restrict server egress to explicitly required services.

Sources

SourceLink
github.comgithub.com/coderamp-labs/gitingest
github.comgithub.com/coderamp-labs/gitingest/blob/4e259a02fe72115bee538271622f1234a81c8e1a/src/gitingest/utils/git_utils.py
github.comgithub.com/coderamp-labs/gitingest/blob/4e259a02fe72115bee538271622f1234a81c8e1a/src/gitingest/utils/query_parser_utils.py
github.comgithub.com/coderamp-labs/gitingest/issues/592
vulncheck.comvulncheck.com/advisories/gitingest-prefix-based-git-host-check-enables-request-forgery-and-token-disclosure

Frequently asked

questions

Potentially. An attacker generally needs access to a feature that accepts or

processes a user-controlled repository URL, but does not necessarily need

local access to the host running Gitingest.

The relevant prerequisite is the ability to submit or influence a URL that

reaches the vulnerable hostname-validation and outbound-request path.

Authentication requirements depend on how the application exposes that

functionality.

Use strict, normalized exact-host allowlists and reject destinations that are

not explicitly approved. Credentials should only be sent to verified

destinations, with redirects and alternate hostname representations handled

safely.

Combine secure URL validation with deny-by-default egress policies, narrow

credential scope, code-review checks for SSRF patterns, and monitoring for

unexpected outbound connections.

Find out what's already
exploitable in your codebase.