Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. mechanize
  4. ›
  5. CVE-2022-31033

CVE-2022-31033: Authorization header leak on port redirect in mechanize

June 9, 2022 (updated November 7, 2023)

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.

References

  • github.com/advisories/GHSA-64qm-hrgp-pgr9
  • github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9

Code Behaviors & Features

Detect and mitigate CVE-2022-31033 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.8.5

Fixed versions

  • 2.8.5

Solution

Upgrade to version 2.8.5 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

gem/mechanize/CVE-2022-31033.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:12 +0000.