Skip to content
Heist/ feed
Back to feed
HighFix available

ruby-mechanize — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-31033

The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.

Products
ruby-mechanize
Affected versions
Not specified
Fixed versions
2.8.5-1
CVEs
CVE-2022-31033
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:57 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-31033

core-osv · Original source

Published 9 Jun 2022, 20:15 UTC

The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.

osv:DEBIAN-CVE-2022-31033

ruby-mechanize

Fixed versions: 2.8.5-1

ruby-mechanize

Fixed versions: 2.8.5-1

ruby-mechanize

Fixed versions: 2.8.5-1

Complete source record
{
  "id": "a408be35bd5d5f2acaa8eb4eefae8a7ca17cd3f7e55e608005b1bc87f8aafb4f",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-31033",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-31033",
    "summary": "The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends cookies, follows redirects, and can follow links and submit forms. In versions prior to 2.8.5 the Authorization header is leaked after a redirect to a different port on the same site. Users are advised to upgrade to Mechanize v2.8.5 or later. There are no known workarounds for this issue.",
    "evidence": "osv:DEBIAN-CVE-2022-31033",
    "products": [
      {
        "name": {
          "value": "ruby-mechanize",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.8.5-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ruby-mechanize",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.8.5-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ruby-mechanize",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.8.5-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2022-31033",
      "aliases": [
        "DEBIAN-CVE-2022-31033"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.8.5-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mechanize",
            "purl": "pkg:deb/debian/ruby-mechanize?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31033.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.8.5-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mechanize",
            "purl": "pkg:deb/debian/ruby-mechanize?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31033.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.8.5-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-mechanize",
            "purl": "pkg:deb/debian/ruby-mechanize?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31033.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:02:38.520908399Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-31033"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-31033"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-31033",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 323846,
  "published_at": "2022-06-09T20:15:08.343+00:00"
}