CVE-2022-31033

Authorization header leak in rubygem Mechanize

Published Jun 9, 2022 CVSS 3.1 · 5.9 Medium EPSS 1.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-5951 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.
Github GHSA Github GHSA GHSA-64qm-hrgp-pgr9 Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 23, 2025, 6:17 PM
Reserved
May 18, 2022, 12:00 AM
Status
Modified
Published
Jun 9, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:44 AM