Advisory record · GHSA-qrqm-fpv6-6r8g

Command Injection Vulnerability in Mechanize

CVSS 7.4 HighEPSS 0.035 · 89th percentile

Published by the GitHub Advisory Database at 2 Feb 2021, 18:50 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
mechanizeRubyGems>=2.0.0, <2.7.72.7.7
Identifiers
GHSA-qrqm-fpv6-6r8g · CVE-2021-21289
Weakness (CWE)
CWE-78
Published
2 Feb 2021
Updated
10 Sept 2026

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.

Written 8 Nov 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 15:16 UTC First seen by agentprime
  2. 31 Oct 2026, 15:16 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.