Skip to content
Heist/ feed
Medium

Mechanize sends credential headers to a different scheme or port after a redirect

Type: advisorySource: Official CVE List1 source record

The Mechanize library is used for automating interaction with websites. Prior to 2.14.1, Mechanize::HTTP::Agent#response_redirect treats redirects as same-origin when the host matches without consistently comparing scheme and port. A same-host HTTPS-to-HTTP redirect can send Authorization and Cookie headers over cleartext, while a same-host redirect to another port can send a caller-supplied Cookie header to a different service. Cookies in Mechanize#cookie_jar remain scoped separately; the issue affects caller-supplied headers and can disclose credentials without affecting integrity or availability. This issue is fixed in version 2.14.1.

Announced Source revision 1
Original source ↗

CVE-2026-107714

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-107714

mechanize

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "sparklemotion",
    "product": "mechanize",
    "versions": [
      {
        "status": "affected",
        "version": "< 2.15.0"
      }
    ]
  }
]
Related CVEs
CVE-2026-107714

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#16297 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement