CVE-2026-107714: Ruby mechanize · The Mechanize library is used for automating interaction with websites
Affects ruby-mechanizeSource GCVE Database
Not known to be exploited · CVSS 5.9 Medium · fixed in 2.14.1 : update ruby-mechanize when convenient.
Data as of 18 Nov 2026, 04:06 UTC
- Patch
- Available – fixed in 2.14.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10ruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu Pro 20.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to Mechanize version 2.14.1 or later, where this redirect handling issue is fixed. No other mitigation is required as the vendor has provided an official fix.
Description
The Ruby Mechanize library prior to version 2.14.1 has a vulnerability in its HTTP redirect handling. Redirects are treated as same-origin if the host matches, but scheme and port are not consistently compared. This can cause sensitive Authorization and Cookie headers to be sent over unencrypted HTTP or to unintended services on different ports, potentially disclosing credentials. The issue affects caller-supplied headers but does not impact cookie jar integrity or availability. The vulnerability is fixed in version 2.14.1.
References
- ubuntu.com/security/CVE-2026-107714 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-107714 (opens in a new tab)
- github.com/sparklemotion/mechanize/commit/02a1235842d6eda8d4a5a3d8f13aba2cecf52e4f (opens in a new tab)
- github.com/sparklemotion/mechanize/commit/2f97fe358a91928e5e48221f2ec5cb50fa1a43ba (opens in a new tab)
- github.com/sparklemotion/mechanize/pull/676 (opens in a new tab)
- github.com/sparklemotion/mechanize/releases/tag/v2.14.1 (opens in a new tab)
- github.com/sparklemotion/mechanize/security/advisories/GHSA-5jgv-wc2m-xv99 (opens in a new tab)