Skip to content
Heist/ feed
Back to feed
MediumFix available

ruby-mechanize — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-107714

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.

Products
ruby-mechanize
Affected versions
2.10.1-1, 2.10.1-1.1, 2.14.0-1, 2.14.0-2, 2.14.1-1, 2.8.5-1
Fixed versions
2.14.1-1
CVEs
CVE-2026-107714
Confirmed fixed CVEs
Not specified
Updated in this feed
29 Oct 2026, 07:14 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-107714

core-osv · Original source

Published 8 Oct 2026, 22:17 UTC

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.

osv:DEBIAN-CVE-2026-107714

ruby-mechanize

Fixed versions: Not specified

ruby-mechanize

Fixed versions: Not specified

ruby-mechanize

Fixed versions: 2.14.1-1

Complete source record
{
  "id": "54fdf1595759feac5a76503a702b6c93e413769b66d2cd134163a823cfade664",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-107714",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-107714",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-107714",
    "products": [
      {
        "name": {
          "value": "ruby-mechanize",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.10.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10.1-1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.14.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.14.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.14.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.8.5-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mechanize",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.10.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.10.1-1.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.14.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.14.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.14.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-mechanize",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.14.1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.10.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.10.1-1.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.14.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.14.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-107714",
      "aliases": [
        "DEBIAN-CVE-2026-107714"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mechanize",
            "purl": "pkg:deb/debian/ruby-mechanize?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2.10.1-1",
            "2.10.1-1.1",
            "2.14.0-1",
            "2.14.0-2",
            "2.14.1-1",
            "2.8.5-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-107714.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mechanize",
            "purl": "pkg:deb/debian/ruby-mechanize?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "2.10.1-1",
            "2.10.1-1.1",
            "2.14.0-1",
            "2.14.0-2",
            "2.14.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-107714.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.14.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mechanize",
            "purl": "pkg:deb/debian/ruby-mechanize?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "2.10.1-1",
            "2.10.1-1.1",
            "2.14.0-1",
            "2.14.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-107714.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-10T09:47:29.571471290Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-107714"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-107714"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-107714",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 228520,
  "published_at": "2026-10-08T22:17:27.003+00:00"
}