CVE-2026-107714 Mechanize sends credential headers to a different scheme or port after a redirect
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
The Mechanize library is used for automating interaction with websites. Prior to 2.14.1, Mechanize::HTTP::Agent#response_redirect treats redirects as same-origin when the host matches without consistently comparing scheme and port. A same-host HTTPS-to-HTTP redirect can send Authorization and Cookie headers over cleartext, while a same-host redirect to another port can send a caller-supplied Cookie header to a different service. Cookies in Mechanize#cookie_jar remain scoped separately; the issue affects caller-supplied headers and can disclose credentials without affecting integrity or availability. This issue is fixed in version 2.14.1.
Upgrade path
8 packages: 1 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby-mechanize(Debian 12) | = 2.8.5-1; = 2.10.1-1; = 2.10.1-1.1; = 2.14.0-1 +3 more | No fix listed | No fix yet |
| debian/ruby-mechanize(Debian 13) | = 2.10.1-1; = 2.10.1-1.1; = 2.14.0-1; = 2.14.0-2 +2 more | No fix listed | No fix yet |
| ubuntu/ruby-mechanize(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-mechanize(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-mechanize(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-mechanize(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/ruby-mechanize(Debian 14) | < 2.14.1-1; = 2.10.1-1; = 2.10.1-1.1; = 2.14.0-1 +1 more | 2.14.1-1 | Fixed |
| sparklemotion mechanize | = < 2.15.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sparklemotion mechanize | = < 2.15.0 | No fix listed |
| redhat/3scale-amp2/system-rhel8(Red Hat:3scale:2.13) | All versions | No fix listed |
| debian/ruby-mechanize(Debian:12) | All versions | No fix listed |
| debian/ruby-mechanize(Debian:12) | = 2.10.1-1 | No fix listed |
| debian/ruby-mechanize(Debian:12) | = 2.10.1-1.1 | No fix listed |
| debian/ruby-mechanize(Debian:12) | = 2.14.0-1 | No fix listed |
| debian/ruby-mechanize(Debian:12) | = 2.14.0-2 | No fix listed |
| debian/ruby-mechanize(Debian:12) | = 2.14.1-1 | No fix listed |
| debian/ruby-mechanize(Debian:12) | = 2.8.5-1 | No fix listed |
| debian/ruby-mechanize(Debian:13) | All versions | No fix listed |
| debian/ruby-mechanize(Debian:13) | = 2.10.1-1 | No fix listed |
| debian/ruby-mechanize(Debian:13) | = 2.10.1-1.1 | No fix listed |
| debian/ruby-mechanize(Debian:13) | = 2.14.0-1 | No fix listed |
| debian/ruby-mechanize(Debian:13) | = 2.14.0-2 | No fix listed |
| debian/ruby-mechanize(Debian:13) | = 2.14.1-1 | No fix listed |
| debian/ruby-mechanize(Debian:14) | < 2.14.1-1 | 2.14.1-1 |
| debian/ruby-mechanize(Debian:14) | = 2.10.1-1 | No fix listed |
| debian/ruby-mechanize(Debian:14) | = 2.10.1-1.1 | No fix listed |
| debian/ruby-mechanize(Debian:14) | = 2.14.0-1 | No fix listed |
| debian/ruby-mechanize(Debian:14) | = 2.14.0-2 | No fix listed |
| ubuntu/ruby-mechanize(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/ruby-mechanize(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ruby-mechanize(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ruby-mechanize(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/sparklemotion/mechanize/security/advisories/GHSA-5jgv-wc2m-xv99
- https://github.com/sparklemotion/mechanize/pull/676
- https://github.com/sparklemotion/mechanize/commit/02a1235842d6eda8d4a5a3d8f13aba2cecf52e4f
- https://github.com/sparklemotion/mechanize/commit/2f97fe358a91928e5e48221f2ec5cb50fa1a43ba
- https://github.com/sparklemotion/mechanize/releases/tag/v2.14.1
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2548285 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-107714 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-95320 third-party-advisory