{"schemaVersion":3,"id":"CVE-2026-107715","aliases":["DEBIAN-CVE-2026-107715","GHSA-2mwr-xjcg-37j7","UBUNTU-CVE-2026-107715"],"status":"published","duplicateOf":null,"title":null,"description":"The Mechanize library is used for automating interaction with websites. Prior to 2.14.1, Mechanize sends caller-supplied credential headers to a different host after an HTTP redirect. Mechanize#request_headers= is reapplied by Mechanize::HTTP::Agent#request_add_headers even after Mechanize::HTTP::Agent#response_redirect strips per-request headers, and the protected header lists omit Proxy-Authorization and Cookie2. An attacker who controls a redirect target can capture bearer tokens or session cookies supplied through request_headers= or the per-request headers argument, while Mechanize#cookie_jar and Mechanize::HTTP::AuthStore are not affected. This issue is fixed in version 2.14.1.","dates":{"published":"2026-10-08T21:27:24.651Z","modified":"2026-10-09T13:22:27.174Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.8,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":5.6,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":5.6,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":5.6,"impact":6.7,"computed":true}]},"epss":{"probability":0.00395,"percentile":0.32492,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-09T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00395,"percentile":0.32492}],"last30":[{"date":"2026-10-09T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00395,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00395,"percentile":0.32492}]},"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"},{"id":"CWE-522","name":"Insufficiently Protected Credentials","description":"The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/522.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":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2.14.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2.14.1-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":"RubyGems","product":"mechanize","name":"mechanize","label":"mechanize","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/mechanize","purlType":"gem","versions":[{"text":"< 2.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.14.1","eol":null,"hubHref":null},{"vendor":"sparklemotion","product":"mechanize","name":"mechanize","label":"mechanize","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.15.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.15.0","eol":null,"hubHref":"/vendor/sparklemotion/mechanize"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/sparklemotion/mechanize/security/advisories/GHSA-2mwr-xjcg-37j7","label":"github.com/sparklemotion/mechanize/security/advisories/GHSA-2mwr-xjcg-37j7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT"]},{"url":"https://github.com/sparklemotion/mechanize/pull/676","label":"github.com/sparklemotion/mechanize/pull/676","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://github.com/sparklemotion/mechanize/commit/02a1235842d6eda8d4a5a3d8f13aba2cecf52e4f","label":"github.com/sparklemotion/mechanize/commit/02a1235842d6eda8d4a5a3d8f13aba2cecf52e4f","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://github.com/sparklemotion/mechanize/commit/94e0902867296be804f36eccbb47acf7d5018745","label":"github.com/sparklemotion/mechanize/commit/94e0902867296be804f36eccbb47acf7d5018745","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://github.com/sparklemotion/mechanize/commit/ac49abf2869297d83c3b11bbfb8b18e63b588c95","label":"github.com/sparklemotion/mechanize/commit/ac49abf2869297d83c3b11bbfb8b18e63b588c95","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://github.com/sparklemotion/mechanize/releases/tag/v2.14.1","label":"github.com/sparklemotion/mechanize/releases/tag/v2.14.1","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-107715","label":"security-tracker.debian.org/tracker/CVE-2026-107715","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/sparklemotion/mechanize","label":"github.com/sparklemotion/mechanize","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2026-107715","label":"ubuntu.com/security/CVE-2026-107715","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-107715","label":"www.cve.org/CVERecord?id=CVE-2026-107715","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-08T21:27:24.651Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-09T13:22:27.174Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T14:58:27.059Z","stale":false,"partial":false}}