Improper Validation of Syntactic Correctness of Input Affecting mail package, versions <2.9.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-MAIL-19233836
  • published24 Aug 2026
  • disclosed18 Aug 2026
  • creditmantas, glefait

Introduced: 18 Aug 2026

NewCVE-2026-63435  (opens in a new tab)
CWE-1286  (opens in a new tab)

How to fix?

Upgrade mail to version 2.9.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Syntactic Correctness of Input through q_value_decode and b_value_decode in lib/mail/utilities.rb. An attacker can make a display name or local part decode to a different address than intended by supplying a malformed RFC 2047 encoded-word, including one that embeds extra encoded-word markers or additional text. The decoders only matched the first encoded-word and used a greedy charset capture, so a crafted header could cause the parsed From, To, or Reply-To value to omit or reshuffle literal text. Applications that display, compare, or authorize based on the decoded address can then present or act on a spoofed sender or recipient address.

CVSS Base Scores

version 4.0
version 3.1