mechanize Known Vulnerabilities & Fixes
mechanize has 4 known security vulnerabilities in RubyGems (Ruby). Upgrade to version 2.14.1 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 2.14.1
Upgrading to 2.14.1 or later resolves all 4 known vulnerabilities in mechanize. Run: gem install mechanize -v 2.14.1
Is mechanize in your project?
Check if you're affected and upgrade to 2.14.1 to stay secure.
Security Summary
- 4 affected version ranges have been identified across these 4 advisories.
- 100% of known issues have a published fixed version.
- Remediation: gem update mechanize
Vulnerabilities
4 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Feb 2, 2021, most recently Oct 8, 2026 (2074 days apart).
| CVE / GHSA | Severity | Affected | Fixed In |
|---|---|---|---|
| CVE-2021-21289 Command Injection Vulnerability in Mechanize | HIGH | 2.0, 2.0.1, 2.1, 2.1.1 (+15 more) | 2.7.7 |
| CVE-2022-31033 Mechanize before v2.8.5 vulnerable to authorization header leak on port redirect | MEDIUM | 0.1.0, 0.1.1, 0.1.2, 0.1.3 (+79 more) | 2.8.5 |
| CVE-2026-107399 Mechanize sends credential headers to another origin after a meta refresh | MEDIUM | 0.1.0, 0.1.1, 0.1.2, 0.1.3 (+91 more) | 2.14.1 |
| CVE-2026-107715 Mechanize sends credential headers to another host after an HTTP redirect | MEDIUM | 0.1.0, 0.1.1, 0.1.2, 0.1.3 (+91 more) | 2.14.1 |
About This Data
Vulnerability data for mechanize is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related RubyGems (Ruby) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of mechanize.