Mechanize · Mechanize · CVE-2022-31033
**Name of the Vulnerable Software and Affected Versions**
Mechanize versions prior to 2.8.5
**Description**
The Mechanize library, used for automating interaction with websites, has an issue where the Authorization header is leaked after a redirect to a different port on the same site. This occurs in versions prior to 2.8.5. The library automatically stores and sends cookies, follows redirects, and can follow links and submit forms.
**Recommendations**
For Mechanize versions prior to 2.8.5, upgrade to Mechanize v2.8.5 or later to resolve the issue. As a temporary workaround, consider restricting access to sensitive information that could be leaked due to the Authorization header issue, until a patch is applied.