{"schemaVersion":3,"id":"CVE-2022-31033","aliases":["UBUNTU-CVE-2022-31033","DEBIAN-CVE-2022-31033","GHSA-64qm-hrgp-pgr9"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-06-09T20:00:16.000Z","modified":"2025-04-23T18:17:26.066Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.015,"percentile":0.74074,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.03599999999999992,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.01464},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.015,"percentile":0.74074}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01464,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.015,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.015,"percentile":0.74074}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"debian","product":"ruby-mechanize","name":"ruby-mechanize","label":"ruby-mechanize","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby-mechanize","purlType":"deb","versions":[{"text":"< 2.8.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.5-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby-mechanize","name":"ruby-mechanize","label":"ruby-mechanize","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby-mechanize","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null},{"text":"36","noFixRecorded":false,"fixedIn":null}],"versionsText":"35 | 36","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"RubyGems","product":"mechanize","name":"mechanize","label":"mechanize","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/mechanize","purlType":"gem","versions":[{"text":"< 2.8.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.5","eol":null,"hubHref":null},{"vendor":"mechanize_project","product":"mechanize","name":"mechanize","label":"mechanize","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.8.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.5","eol":null,"hubHref":"/vendor/mechanize_project/mechanize"},{"vendor":"sparklemotion","product":"mechanize","name":"mechanize","label":"mechanize","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.8.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.5","eol":null,"hubHref":"/vendor/sparklemotion/mechanize"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9","label":"github.com/sparklemotion/mechanize/security/advisories/GHSA-64qm-hrgp-pgr9","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","WEB","Third Party Advisory"]},{"url":"https://github.com/sparklemotion/mechanize/commit/c7fe6996a5b95f9880653ba3bc548a8d4ef72317","label":"github.com/sparklemotion/mechanize/commit/c7fe6996a5b95f9880653ba3bc548a8d4ef72317","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA2FJROTX2U6EBWDPKRQ2VAM67A5TQXF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7OKZMR5O3T5HQ2V737TC7IU4WZRT2LGX/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://ubuntu.com/security/CVE-2022-31033","label":"ubuntu.com/security/CVE-2022-31033","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/sparklemotion/mechanize/commit/17e5381032c90caf240ac3d2e52b353f40c18d83","label":"github.com/sparklemotion/mechanize/commit/17e5381032c90caf240ac3d2e52b353f40c18d83","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31033","label":"www.cve.org/CVERecord?id=CVE-2022-31033","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-31033","label":"security-tracker.debian.org/tracker/CVE-2022-31033","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31033","label":"nvd.nist.gov/vuln/detail/CVE-2022-31033","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mechanize/CVE-2022-31033.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/mechanize/CVE-2022-31033.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sparklemotion/mechanize","label":"github.com/sparklemotion/mechanize","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-06-09T20:00:16.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T18:17:26.066Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T16:10:11.479Z","stale":false,"partial":false}}