Description
The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sparklemotion | mechanize | < 2.8.5 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-mechanize | 2.8.5-1 | — |
| Debian 13 | ruby-mechanize | 2.8.5-1 | — |
| Debian 12 | ruby-mechanize | 2.8.5-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ruby-mechanize | No fix yet | — |
| Ubuntu 26.04 LTS | ruby-mechanize | No fix yet | — |
| Ubuntu 25.10 | ruby-mechanize | No fix yet | — |
| Ubuntu 24.04 LTS | ruby-mechanize | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | mechanize | < 2.8.5 | 2.8.5 | GHSA-64qm-hrgp-pgr9 |