Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. mechanize
  4. ›
  5. CVE-2026-107715

CVE-2026-107715: Mechanize sends credential headers to another host after an HTTP redirect

October 8, 2026

mechanize leaked credentials to the redirect target when an HTTP redirect crossed to another host. Credentials set through Mechanize#request_headers= leaked even when they were Authorization.

References

  • github.com/advisories/GHSA-2mwr-xjcg-37j7
  • github.com/sparklemotion/mechanize/commit/02a1235842d6eda8d4a5a3d8f13aba2cecf52e4f
  • github.com/sparklemotion/mechanize/commit/94e0902867296be804f36eccbb47acf7d5018745
  • github.com/sparklemotion/mechanize/commit/ac49abf2869297d83c3b11bbfb8b18e63b588c95
  • github.com/sparklemotion/mechanize/pull/676
  • github.com/sparklemotion/mechanize/releases/tag/v2.14.1
  • github.com/sparklemotion/mechanize/security/advisories/GHSA-2mwr-xjcg-37j7
  • nvd.nist.gov/vuln/detail/CVE-2026-107715

Code Behaviors & Features

Detect and mitigate CVE-2026-107715 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 before 2.14.1

Fixed versions

  • 2.14.1

Solution

Upgrade to version 2.14.1 or above.

Impact 6.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-522: Insufficiently Protected Credentials

Source file

gem/mechanize/CVE-2026-107715.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:53 +0000.