DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1014809

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-mechanize (PTS)buster2.7.6-1+deb10u1vulnerable
sid, trixie, bookworm2.8.5-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs


[bullseye] - ruby-mechanize <no-dsa> (Minor issue)
[buster] - ruby-mechanize <no-dsa> (Minor issue)
Prerequisite to clear credential headers when redirecting to cross site (v2.8.0)
Fixed by: (v2.8.5)

Search for package or bug name: Reporting problems