CVE-2022-31033: The Mechanize library is used for automating interaction with websites
CVE-2022-31033 is a medium-severity flaw (CVSS 5.9) affecting mechanize, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.9 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.5% (top 25%) |
| CISA exploited list | No |
| Weakness | CWE-200 |
| Published | 2022-06-09 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-31033?
mechanize: upgrade to 2.8.5; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-31033 being exploited?
CVE-2022-31033 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-31033 affect?
CVE-2022-31033 affects mechanize, fedora. Severity is medium (CVSS 5.9). 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 leake
How urgent is CVE-2022-31033?
Priority 44/100. Remotely exploitable, no login, no user action
Related CVEs
- CVE-2021-32837 HIGH 7.5 UPGRADE mechanize, a library for automatically interacting with HTTP web servers, contains a regular expression that i