Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:gem/mechanize@2.7.7
purl pkg:gem/mechanize@2.7.7
Next non-vulnerable version 2.8.5
Latest non-vulnerable version 2.8.5
Risk 3.1
Vulnerabilities affecting this package (1)
Vulnerability Summary Fixed by
VCID-g1c5-3gzy-tuhn
Aliases:
CVE-2022-31033
GHSA-64qm-hrgp-pgr9
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.
2.8.5
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-621z-bj6n-4bc5 A file named by an attacker being utilized by Mechanize could result in arbitrary code execution. CVE-2021-21289
GHSA-qrqm-fpv6-6r8g

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-13T09:22:14.980059+00:00 Ruby Importer Affected by VCID-g1c5-3gzy-tuhn https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mechanize/CVE-2022-31033.yml 38.6.0
2026-06-13T06:22:04.343721+00:00 GHSA Importer Fixing VCID-621z-bj6n-4bc5 https://github.com/advisories/GHSA-qrqm-fpv6-6r8g 38.6.0
2026-06-12T18:25:25.670573+00:00 GitLab Importer Affected by VCID-g1c5-3gzy-tuhn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/mechanize/CVE-2022-31033.yml 38.6.0
2026-06-12T17:33:03.504028+00:00 GitLab Importer Fixing VCID-621z-bj6n-4bc5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/mechanize/CVE-2021-21289.yml 38.6.0
2026-06-12T08:04:03.234915+00:00 GithubOSV Importer Fixing VCID-621z-bj6n-4bc5 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/02/GHSA-qrqm-fpv6-6r8g/GHSA-qrqm-fpv6-6r8g.json 38.6.0