Insecure Defaults Affecting org.apache.sling:org.apache.sling.commons.messaging.mail package, versions [1.0.0,2.0.0)
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 ID SNYK-JAVA-ORGAPACHESLING-2320171
- published 15 Dec 2021
- disclosed 15 Dec 2021
- credit Michael Lescisin
How to fix?
org.apache.sling:org.apache.sling.commons.messaging.mail to version 2.0.0 or higher.
org.apache.sling:org.apache.sling.commons.messaging.mail is a part of Apache Sling project. This module provides a simple layer on top of Jakarta Mail 2.0 (package jakarta.mail) including a message builder and a service to send mails via SMTPS.
Affected versions of this package are vulnerable to Insecure Defaults due to a missing validation of the SMTPS server hostname certificate during the handling of the TLS connection to the SMTPS server.