Improper Validation of Specified Type of Input Affecting yara-mail package, versions [,3.3.0)


Severity

Recommended
0.0
medium
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-PYTHON-YARAMAIL-14861161
  • published5 Jan 2026
  • disclosed1 Jan 2026
  • creditUnknown

Introduced: 1 Jan 2026

CVE NOT AVAILABLE CWE-1287  (opens in a new tab)

How to fix?

Upgrade yara-mail to version 3.3.0 or higher.

Overview

yara-mail is an A Python package and command line utility for scanning emails with YARA rules

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input due to the automatic treatment of string input as a filesystem path in the mailsuite.utils.parse_email() and mailsuite.utils.from_trusted_domain() functions. An attacker can read arbitrary files by crafting messages that are interpreted as potential file paths.

References

CVSS Base Scores

version 4.0
version 3.1