CVE-2022-31033 MEDIUM

CVE-2022-31033: Authorization header leak in rubygem Mechanize

Vendor Sparklemotion
Product mechanize
Weakness CWE-200 · Info exposure
Published June 9, 2022
Last update April 23, 2025

CVSS base score

5.9/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction None
Confidentiality High
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

June 9, 2022 CVE published
April 23, 2025 Record updated