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.
bundle update --conservative mail # Gemfile: '>= 2.9.1'Is your project on an affected mail?
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
Mail: Email address spoofing via malformed RFC 2047 encoded-words
- Affected
- <2.9.1
- Fixed in
- 2.9.1
Mail Gem Improper Input Validation vulnerability
- Affected
- <2.4.3
- Fixed in
- 2.4.3
Mail Gem Path Traversal vulnerability
- Affected
- <2.4.4
- Fixed in
- 2.4.4
Mail Gem CRLF Injection vulnerability
- Affected
- <2.5.5
- Fixed in
- 2.5.5
Fixed within 2.2.x, affecting earlier releases
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.
| Version | Known advisories |
|---|---|
| mail 2.2.20 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097 |
| mail 2.2.19 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097 |
| mail 2.2.18 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097 |
| mail 2.2.17 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097 |
| mail 2.2.16 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097 |
| mail 2.2.15 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2015-9097 |
| mail 2.2.14 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.13 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.12 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.11 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.10 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.9.1 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.9 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.7 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.6.1 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.6 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.5.2 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.5.1 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.5 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.4 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.3 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.2 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.1 | CVE-2026-63435, CVE-2012-2140, CVE-2012-2139, CVE-2011-0739, CVE-2015-9097 |
| mail 2.2.0 | CVE-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.