Skip to content
Heist/ feed
Medium

Mechanize sends credential headers to another host after an HTTP redirect

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-107715

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-107715

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-107715

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

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