CVE-2022-31033 — Vulnerability in mechanize — CVE Details
Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect
Summary
Advisory Timeline
- First published June 9, 2022 (1585 days ago).
- Last revised November 8, 2023 — 516 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install mechanize -v 2.8.5
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| mechanize | rubygems | 0.1.0, 0.1.1, 0.1.2, 0.1.3 (+79 more) | 2.8.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
- CWE-522
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31033ADVISORY
- https://github.com/sparklemotion/mechanize/commit/c7fe6996a5b95f9880653ba3bc548a8d4ef72317WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mechanize/CVE-2022-31033.ymlWEB
- https://github.com/sparklemotion/mechanizePACKAGE
Frequently Asked Questions
- What is CVE-2022-31033?
- Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.9/10).
- How do I check if my project is affected by CVE-2022-31033?
- CVE-2022-31033 affects mechanize. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31033 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2021-21289HIGH
Command Injection Vulnerability in Mechanize
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-65829MEDIUM
MPXJ: Potential Path Traversal Vulnerability in Primavera P3 PRX and SureTrak STX readers
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
- GHSA-mwm8-39rw-8826MEDIUM
sqlite3-ruby: Use-After-Free in SQLite Aggregate Arguments in Heap-Allocated Argument Array
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies