Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Mechanize versions 2.0.0 up to but not including 2.7.7 are vulnerable to OS command injection through several methods that use Ruby's Kernel.open, such as CookieJar#load, Mechanize#download, and File#save. An attacker can exploit this only when untrusted input is passed as a local filename to these calls, allowing them to run operating system commands. Upgrade to Mechanize 2.7.7 or later; the advisory lists no workarounds.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.4 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.035, the 89th percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 15:16 UTC First seen by agentprime
- 31 Oct 2026, 15:16 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-qrqm-fpv6-6r8g
- OSV: GHSA-qrqm-fpv6-6r8g
- github.com/sparklemotion/mechanize/security/advisories/GHSA-qrqm-fpv6-6r8g
- nvd.nist.gov/vuln/detail/CVE-2021-21289
- github.com/sparklemotion/mechanize/commit/66a6a1bfa653a5f13274a396a5e5441238656aa0
- github.com/rubysec/ruby-advisory-db/blob/master/gems/mechanize/CVE-2021-21289.yml
- github.com/sparklemotion/mechanize
- github.com/sparklemotion/mechanize/releases/tag/v2.7.7
- lists.debian.org/debian-lts-announce/2021/02/msg00021.html
- lists.fedoraproject.org/archives/list/[email protected]/message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV
- lists.fedoraproject.org/archives/list/[email protected]/message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V
- rubygems.org/gems/mechanize
- security.gentoo.org/glsa/202107-17