Medium

Improper Validation of Certificate with Host Mismatch in Jenkins Mailer Plugin

  • Disclosed: 24.05.2022
  • Updated: 11.10.2026 11:21

Jenkins Mailer Plugin prior to 1.32.1, 1.31.1, and 1.29.1 does not perform hostname validation when connecting to the configured SMTP server. This lack of validation could be abused using a man-in-the-middle attack to intercept these connections.

Mailer Plugin 1.32.1, 1.31.1, and 1.29.1 validates the SMTP hostname when connecting via TLS by default. In Mailer Plugin 1.32 and earlier, administrators can set the Java system property mail.smtp.ssl.checkserveridentity to true on startup to enable this protection.

In case of problems, this protection can be disabled again by setting the Java system property mail.smtp.ssl.checkserveridentity to false on startup.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.jenkins-ci.plugins:mailer >= 1.32, < 1.32.1, >= 1.30, < 1.31.1, < 1.29.1 1.32.1, 1.31.1, 1.29.1

References

CVSS score 4.8/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-295
Platform
Java / Kotlin (Maven)
Package
org.jenkins-ci.plugins:mailer
Disclosed
24.05.2022
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-6fr3-286q-q3cr - CC BY 4.0

Vulnerability history: org.jenkins-ci.plugins:mailer

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
01.2022 05.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 3
  • Low 1

Disclosures per year

  1. 2022: 5
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
  1. Improper Validation of Certificate with Host Mismatch in Jenkins Mailer Plugin this entry
    Medium · 4.8 CVE-2020-2252 >= 1.32, < 1.32.1, >= 1.30, < 1.31.1, < 1.29.1 1.32.1, 1.31.1, 1.29.1
  2. High · 8.0 CVE-2018-8718 < 1.21 1.21
  3. Medium · 4.3 CVE-2022-20613 >= 391.ve4a38c1bcf4b, < 408.vd726a, < 1.34.2 408.vd726a, 1.34.2
  4. Medium · 4.3 CVE-2022-20614 >= 391.ve4a38c1bcf4b, < 408.vd726a, < 1.34.2 408.vd726a, 1.34.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.