{"schemaVersion":3,"id":"CVE-2026-107399","aliases":["DEBIAN-CVE-2026-107399","GHSA-c6rp-p8xm-4q9f","UBUNTU-CVE-2026-107399"],"status":"published","duplicateOf":null,"title":"Mechanize sends credential headers to another origin after a meta refresh","description":"The Mechanize library is used for automating interaction with websites. Prior to 2.14.1, Mechanize applies no origin trust boundary in Mechanize::HTTP::Agent#response_follow_meta_refresh when Mechanize#follow_meta_refresh is enabled. A page containing a meta refresh to another origin causes headers configured through Mechanize#request_headers= to be reapplied to the refresh request, allowing an attacker who controls content in the crawl to capture bearer tokens or session cookies. The default configuration is not affected because follow_meta_refresh is false, and the exposure is limited to caller-supplied default headers. This issue is fixed in version 2.14.1.","dates":{"published":"2026-10-08T21:24:46.349Z","modified":"2026-10-14T01:21:37.665Z","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.00362,"percentile":0.28887,"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.00362,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00362,"percentile":0.28887}],"last30":[{"date":"2026-10-09T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00362,"percentile":0.28887}]},"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-c6rp-p8xm-4q9f","label":"github.com/sparklemotion/mechanize/security/advisories/GHSA-c6rp-p8xm-4q9f","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/84c74df87d15f5d119df268ba6aa79bc1e16a2c3","label":"github.com/sparklemotion/mechanize/commit/84c74df87d15f5d119df268ba6aa79bc1e16a2c3","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-107399","label":"security-tracker.debian.org/tracker/CVE-2026-107399","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-107399","label":"ubuntu.com/security/CVE-2026-107399","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-107399","label":"www.cve.org/CVERecord?id=CVE-2026-107399","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-08T21:24:46.349Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T01:21:37.665Z","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-22T18:03:38.934Z","stale":false,"partial":false}}