Is mail 2.2 vulnerable?

RubyGems · 24 releases from 2.2.0 to 2.2.20 · latest mail is 2.9.1 · checked 18 Nov 2026

Yes: 4 known advisories

Yes. mail 2.2.20, the last 2.2 release, is affected by 4 known security advisories (1 high, 3 medium), including CVE-2012-2140, CVE-2026-63435, CVE-2012-2139. 1 more affects earlier 2.2.x releases. Upgrade to 2.9.1 or later to fix all of them.

Upgrade with:bundle update --conservative mail # Gemfile: '>= 2.9.1'

Is your project on an affected mail?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting mail 2.2.20

  • MediumCVE-2026-63435GHSA-mvxr-6m87-mv2q2 Sept 2026

    Mail: Email address spoofing via malformed RFC 2047 encoded-words

    Affected
    <2.9.1
    Fixed in
    2.9.1
  • HighCVE-2012-2140GHSA-rp63-jfmw-532w24 Oct 2017

    Mail Gem Improper Input Validation vulnerability

    Affected
    <2.4.3
    Fixed in
    2.4.3
  • MediumCVE-2012-2139GHSA-cj92-c4fj-w9c524 Oct 2017

    Mail Gem Path Traversal vulnerability

    Affected
    <2.4.4
    Fixed in
    2.4.4
  • MediumCVE-2015-9097GHSA-q86f-fmqf-qrf624 Oct 2017

    Mail Gem CRLF Injection vulnerability

    Affected
    <2.5.5
    Fixed in
    2.5.5

Fixed within 2.2.x, affecting earlier releases

  • MediumCVE-2011-0739GHSA-cpjc-p7fc-j9xh24 Oct 2017

    Mail Improper Input Validation vulnerability

    Affected
    <2.2.15
    Fixed in
    2.2.15

Every mail 2.2.x release

Affected: 2.2.0 to 2.2.20. Latest mail: 2.9.1.

VersionKnown advisories
mail 2.2.20CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097
mail 2.2.19CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097
mail 2.2.18CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097
mail 2.2.17CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097
mail 2.2.16CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097
mail 2.2.15CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097
mail 2.2.14CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.13CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.12CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.11CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.10CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.9.1CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.9CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.7CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.6.1CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.6CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.5.2CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.5.1CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.5CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.4CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.3CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.2CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.1CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097
mail 2.2.0CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097

Which of your client projects are still on mail 2.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact mail version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other mail versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.