CVE-2026-107715: Mechanize sends credential headers to another host after an HTTP redirect
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 →