Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. gix-transport
  4. ›
  5. GHSA-9857-6mw7-fq2m

GHSA-9857-6mw7-fq2m: gix-transport: HTTP credentials leaked to redirected host in curl backend

May 5, 2026

The curl-based HTTP transport in gix-transport sends user credentials (passwords, tokens) to an attacker-controlled server after an HTTP redirect. When a server responds with a 302 redirect during the initial GET /info/refs, gitoxide records the redirected base URL and rewrites all subsequent requests to point at the redirected host. The Authorization header is still attached because add_basic_auth_if_present() only checks self.url (the original, never-updated URL).

The reqwest backend is not affected. Its custom redirect policy at reqwest/remote.rs lines 60-64 compares prev_url.host_str() to curr_url.host_str() and calls attempt.stop() on cross-domain redirects, so redirected_base_url is never set to a different host.

References

  • github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-9857-6mw7-fq2m
  • github.com/advisories/GHSA-9857-6mw7-fq2m

Code Behaviors & Features

Detect and mitigate GHSA-9857-6mw7-fq2m with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.25.4 before 0.56.0

Fixed versions

  • 0.56.0

Solution

Upgrade to version 0.56.0 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-522: Insufficiently Protected Credentials

Source file

cargo/gix-transport/GHSA-9857-6mw7-fq2m.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.