Impact
Mechanize, a Ruby library for web automation, mishandled redirects before version 2.14.1. When a redirect stays on the same host but changes the scheme or port, the library considers it the same origin and continues to send stored Authorization and Cookie headers for the request. This behavior allows an attacker to cause credentials to be transmitted over an unsecured HTTP connection or to a different service listening on another port, exposing secrets without affecting integrity or availability.
Affected Systems
The vulnerable product is the Mechanize library from Sparklemotion. All releases before 2.14.1 are affected; the fix was released in version 2.14.1.
Risk and Exploitability
The CVSS score of 5.9 indicates a medium severity risk. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, implying no known widespread exploitation yet. A likely attack vector involves an application that follows redirects automatically and includes credentials; an attacker can inject a redirect that points to an HTTP URL or to a different port, causing the library to leak stored credentials to an unintended destination. The impact is limited to confidentiality loss.
OpenCVE Enrichment