CVE-2020-2252: Improper Validation of Certificate with Host Mismatch in Jenkins Mailer Plugin

Summary

24/05/2022
Yes i
Moderate
4.8

CVE-2020-2252: Improper Validation of Certificate with Host Mismatch in Jenkins Mailer Plugin. Affects org.jenkins-ci.plugins:mailer across 3 version ranges.

< 1.29.1 >= 1.30, < 1.31.1 >= 1.32, < 1.32.1

Fixed in 1.29.1, 1.31.1 or 1.32.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Jenkins Mailer Plugin is a Maven package that provides email notification functionality for the Jenkins automation server. It allows users to configure SMTP servers for sending email notifications. This plugin is widely used in Jenkins installations to send email notifications for build results, job status, and other events.

Vulnerability Detail

The Jenkins Mailer Plugin prior to versions 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 opens up the possibility of a man-in-the-middle attack, where an attacker can intercept the connections between Jenkins and the SMTP server. By intercepting these connections, an attacker can potentially access sensitive information or modify the email content being sent by Jenkins.

How To Fix

Latest published version: 534.v1b_36f5864073 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.29.1 1.29.1
  • >= 1.30, < 1.31.1 1.31.1
  • >= 1.32, < 1.32.1 1.32.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The Jenkins Mailer Plugin prior to versions 1.32.1, 1.31.1, and 1.29.1 is vulnerable to an improper validation of certificates with host mismatch. This can be exploited by attackers to intercept connections and potentially access or modify email content. It is recommended to upgrade to the fixed versions or enable hostname validation to mitigate this vulnerability. For further support, contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:mailer →

Share this vulnerability

FAQ

This vulnerability allows an attacker to intercept connections between Jenkins and the SMTP server, potentially accessing sensitive information or modifying email content.

You can use the Vulert Playground at Vulert Scanner to check if your Jenkins installation is affected by this vulnerability. Simply provide your pom.xml file and Vulert will analyze it for open-source vulnerabilities, including this one.

There are no known exploits for this vulnerability at the moment. However, it is recommended to apply the necessary fixes to mitigate the risk.

While it is possible to disable hostname validation by setting the Java system property 'mail.smtp.ssl.checkserveridentity' to false on startup, it is not recommended. Enabling hostname validation provides an important security measure against man-in-the-middle attacks.

For further support on vulnerability remediation and assistance in securing your Jenkins installation, you can contact info@devnack.com.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:mailer.

How To Fix

Latest published version: 534.v1b_36f5864073 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.29.1 1.29.1
  • >= 1.30, < 1.31.1 1.31.1
  • >= 1.32, < 1.32.1 1.32.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback