Skip to main content
VulnerabilityPublished Updated

CVE-2026-107399: Ruby mechanize · The Mechanize library is used for automating interaction with websites

Affects ruby-mechanizeSource GCVE Database

0
Compare
Authoritative record:CVE-2026-107399· Medium 6.8

Not known to be exploited · CVSS 6.8 Medium · fixed in 2.14.1 : update ruby-mechanize when convenient.

Data as of 18 Nov 2026, 04:06 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.14.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10ruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=stonkingOther threatsAffected
  • =2.10.1-1.1
  • =2.14.0-2
Fixed in–
Ubuntu 26.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=resoluteOther threatsAffected
  • =2.10.1-1.1
Fixed in–
Ubuntu 24.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=nobleOther threatsAffected
  • =2.8.5-1
Fixed in–
Ubuntu 22.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=jammyOther threatsAffected
  • =2.7.7-1
  • =2.7.7-3
Fixed in–
Ubuntu Pro 20.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=esm-apps/focalOther threatsAffected
  • =2.7.6-1
  • =2.7.6-1ubuntu0.1~esm1
Fixed in–
Ubuntu Pro 18.04 LTSruby-mechanizepkg:deb/ubuntu/ruby-mechanize?arch=source&distro=esm-apps/bionicOther threatsAffected
  • =2.7.5-1
  • =2.7.5-2
  • =2.7.5-2ubuntu0.1~esm1
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 issue is fixed. If upgrading is not immediately possible, ensure that follow_meta_refresh remains disabled (the default setting) and avoid setting sensitive headers in Mechanize#request_headers when follow_meta_refresh is enabled.

Description

The Ruby Mechanize library prior to version 2.14.1 has a vulnerability in its handling of meta refresh redirects across origins when the follow_meta_refresh option is enabled. This flaw allows headers set by the caller, such as bearer tokens or session cookies, to be sent to a different origin, potentially exposing sensitive authentication information. The default configuration is not affected because follow_meta_refresh is disabled by default. The issue is fixed in version 2.14.1.

References

Community reviews

Loading reviews…