# AWS SES Nodemailer Transport doesn't use clear-text protocol

**URL:** <https://community.sonarsource.com/t/aws-ses-nodemailer-transport-doesnt-use-clear-text-protocol/60547>\
**Category:** Report False-positive / False-negative...\
**Tags:** security-hotspot, node, typescript, security, sonarqube-cloud\
**Created:** [March 25, 2022, 3:36pm UTC](https://community.sonarsource.com/t/aws-ses-nodemailer-transport-doesnt-use-clear-text-protocol/60547 "2022-03-25T15:36:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiguelMoreiraSantos](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/miguelmoreirasantos/32/31802_2.png) [@MiguelMoreiraSantos](https://community.sonarsource.com/u/MiguelMoreiraSantos)\
**Post date:** [March 25, 2022, 3:36pm UTC](https://community.sonarsource.com/t/aws-ses-nodemailer-transport-doesnt-use-clear-text-protocol/60547/1 "2022-03-25T15:36:46Z")

</div>

Product: SonarCloud  
Language: Typescript (NodeJS)  
Security Hotspot: typescript:S5332

SonarCloud is reporting a ‘Using clear-text protocols is security-sensitive’ Security Hotspot even though AWS SES SDK ([SES Client - AWS SDK for JavaScript v3](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ses/index.html)) only ever uses HTTPS.  
Usually the `Transport` interface from `nodemailer` has `secure/secured/tls` properties but this is not the case for the SES transport, as they are not configurable.

```auto
import * as ses from '@aws-sdk/client-ses'
import nodemailer from 'nodemailer'

const sesClient = new ses.SES({ region: AWS_REGION })
const transporter = nodemailer.createTransport({
  SES: {
    ses: sesClient,
    aws: ses,
  },
})

```

Link to the Security Hotspot: [SonarSource Code Analyzers Rules Explorer](https://rules.sonarsource.com/javascript/type/Security%20Hotspot/RSPEC-5332?search=typescript%3AS5332)

---

<div class="post-metadata">

**Author:** ![Loris](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/loris/32/65965_2.png) [@Loris](https://community.sonarsource.com/u/Loris)\
**Post date:** [May 30, 2022, 9:47am UTC](https://community.sonarsource.com/t/aws-ses-nodemailer-transport-doesnt-use-clear-text-protocol/60547/4 "2022-05-30T09:47:25Z")

</div>

Hello Miguel, and welcome to our community!

Thank you for your feedback and I sincerely apologize for our late response. I will look into the matter and create an internal ticket to resolve this issue. Based on your description of the issue, it is a False Positive.

The next step on our side is to investigate the AWS code to prove that this component is forcing HTTPS. This way we can quickly follow up on the issue in future sprints on this SDK.

Have a great day and thank you for this note. Our support for AWS SES SDK is new, and we really appreciate your feedback!

Loris

---

<div class="post-metadata">

**Author:** ![Loris](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/loris/32/65965_2.png) [@Loris](https://community.sonarsource.com/u/Loris)\
**Post date:** [August 29, 2022, 12:46pm UTC](https://community.sonarsource.com/t/aws-ses-nodemailer-transport-doesnt-use-clear-text-protocol/60547/5 "2022-08-29T12:46:12Z")

</div>

Hello Miguel,

This issue is now tracked in [**SonarJS#3351**](https://github.com/SonarSource/SonarJS/issues/3351).

Thanks a lot for your contribution!

Cheers,

Loris

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [September 5, 2022, 12:46pm UTC](https://community.sonarsource.com/t/aws-ses-nodemailer-transport-doesnt-use-clear-text-protocol/60547/6 "2022-09-05T12:46:15Z")

</div>

Closed on September 5, 2022, 12:46pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
