Live threats

All CVEs / Mechanize Project

CVE-2022-31033Mechanize Project Mechanize

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
Jun 9, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mechanize.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems mechanize < 2.8.5 2.8.5 gem "mechanize", ">= 2.8.5"

Per OSV / GitHub Advisories (GHSA-64qm-hrgp-pgr9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mechanize_projectmechanize< 2.8.5
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.