Skip to content

Update dependency nodemailer to v6.9.9 [SECURITY]#131

Open
renovate[bot] wants to merge 1 commit into
dependency-updatesfrom
renovate/npm-nodemailer-vulnerability
Open

Update dependency nodemailer to v6.9.9 [SECURITY]#131
renovate[bot] wants to merge 1 commit into
dependency-updatesfrom
renovate/npm-nodemailer-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Aug 8, 2024

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nodemailer (source) 6.7.56.9.9 age adoption passing confidence

Header injection in nodemailer

CVE-2021-23400 / GHSA-hwqf-gcqm-7353

More information

Details

The package nodemailer before 6.6.1 are vulnerable to HTTP Header Injection if unsanitized user input that may contain newlines and carriage returns is passed into an address object.

Severity

  • CVSS Score: 6.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


nodemailer ReDoS when trying to send a specially crafted email

GHSA-9h6g-pr28-7cqp

More information

Details

Summary

A ReDoS vulnerability occurs when nodemailer tries to parse img files with the parameter attachDataUrls set, causing the stuck of event loop.
Another flaw was found when nodemailer tries to parse an attachments with a embedded file, causing the stuck of event loop.

Details

Regex: /^data:((?:[^;];)(?:[^,])),(.)$/

Path: compile -> getAttachments -> _processDataUrl

Regex: /(<img\b[^>]* src\s*=[\s"']*)(data:([^;]+);[^"'>\s]+)/

Path: _convertDataImages

PoC

https://gist.github.com/francoatmega/890dd5053375333e40c6fdbcc8c58df6
https://gist.github.com/francoatmega/9aab042b0b24968d7b7039818e8b2698

async function exploit() {
   const MailComposer = require(\"nodemailer/lib/mail-composer\");
   const MailComposerObject = new MailComposer();

   // Create a malicious data URL that will cause excessive backtracking
   // This data URL is crafted to have a long sequence of characters that will cause the regex to backtrack
   const maliciousDataUrl = 'data:image/png;base64,' + 'A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;'.repeat(1000) + '==';

   // Call the vulnerable method with the crafted input
   const result = await MailComposerObject._processDataUrl({ path: maliciousDataUrl });
}

await exploit();
Impact

ReDoS causes the event loop to stuck a specially crafted evil email can cause this problem.

Severity

  • CVSS Score: 5.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

nodemailer/nodemailer (nodemailer)

v6.9.9

Compare Source

Bug Fixes
  • security: Fix issues described in GHSA-9h6g-pr28-7cqp. Do not use eternal matching pattern if only a few occurences are expected (dd8f5e8)
  • tests: Use native node test runner, added code coverage support, removed grunt (#​1604) (be45c1b)

v6.9.8

Compare Source

Bug Fixes
  • punycode: do not use native punycode module (b4d0e0c)

v6.9.7

Compare Source

Bug Fixes
  • customAuth: Do not require user and pass to be set for custom authentication schemes (fixes #​1584) (41d482c)

v6.9.6

Compare Source

Bug Fixes
  • inline: Use 'inline' as the default Content Dispostion value for embedded images (db32c93)
  • tests: Removed Node v12 from test matrix as it is not compatible with the test framework anymore (7fe0a60)

v6.9.5

Compare Source

Bug Fixes
  • license: Updated license year (da4744e)

v6.9.4

Compare Source

  • Renamed SendinBlue to Brevo

v6.9.3

Compare Source

  • Specified license identifier (was defined as MIT, actual value MIT-0)
  • If SMTP server disconnects with a message, process it and include as part of the response error

v6.9.2

Compare Source

  • Fix uncaught exception on invalid attachment content payload

v6.9.1

Compare Source

Bug Fixes
  • addressparser: Correctly detect if user local part is attached to domain part (f2096c5)

v6.9.0

Compare Source

  • Do not throw if failed to resolve IPv4 addresses
  • Include EHLO extensions in the send response
  • fix sendMail function: callback should be optional

v6.8.0

Compare Source

  • Add DNS timeout (huksley)
  • add dns.REFUSED (lucagianfelici)

v6.7.8

Compare Source

  • Allow to use multiple Reply-To addresses

v6.7.7

Compare Source

  • Resolver fixes

v6.7.6

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@socket-security

socket-security Bot commented Aug 8, 2024

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn Critical
Critical CVE: npm form-data uses unsafe random function in form-data for choosing boundary

CVE: GHSA-fjxv-7rqg-78g4 form-data uses unsafe random function in form-data for choosing boundary (CRITICAL)

Affected versions: < 2.5.4; >= 3.0.0 < 3.0.4; >= 4.0.0 < 4.0.4

Patched version: 2.5.4

From: auth/package-lock.jsonnpm/cypress@6.9.1npm/jest@26.6.3npm/form-data@2.3.3

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/form-data@2.3.3. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Critical
Critical CVE: npm json-schema is vulnerable to Prototype Pollution

CVE: GHSA-896r-f27r-55mw json-schema is vulnerable to Prototype Pollution (CRITICAL)

Affected versions: < 0.4.0

Patched version: 0.4.0

From: auth/package-lock.jsonnpm/cypress@6.9.1npm/jest@26.6.3npm/json-schema@0.2.3

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/json-schema@0.2.3. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Critical
Critical CVE: Prototype Pollution in npm minimist

CVE: GHSA-xvch-5gv4-984h Prototype Pollution in minimist (CRITICAL)

Affected versions: >= 1.0.0 < 1.2.6; < 0.2.4

Patched version: 1.2.6

From: auth/package-lock.jsonnpm/@babel/core@7.18.0npm/ts-jest@26.5.2npm/cypress@6.9.1npm/eslint-plugin-import@2.26.0npm/babel-loader@8.2.5npm/html-webpack-plugin@4.5.2npm/webpack-dev-server@3.11.3npm/jest@26.6.3npm/minimist@1.2.5

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/minimist@1.2.5. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Critical
Critical CVE: Authorization Bypass Through User-Controlled Key in npm url-parse

CVE: GHSA-hgjh-723h-mx2j Authorization Bypass Through User-Controlled Key in url-parse (CRITICAL)

Affected versions: < 1.5.8

Patched version: 1.5.8

From: web-client/package-lock.jsonnpm/webpack-dev-server@3.11.3npm/url-parse@1.5.3

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/url-parse@1.5.3. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Critical
Critical CVE: Cross-realm object access in Webpack 5

CVE: GHSA-hc6q-2mpp-qw7j Cross-realm object access in Webpack 5 (CRITICAL)

Affected versions: >= 5.0.0 < 5.76.0

Patched version: 5.76.0

From: web-client/package-lock.jsonnpm/webpack@5.72.1

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/webpack@5.72.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Aug 22, 2024
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Aug 29, 2024
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Aug 31, 2024
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Sep 11, 2024
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Sep 13, 2024
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Sep 17, 2024
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Sep 20, 2024
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Oct 10, 2024
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Oct 12, 2024
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Oct 29, 2024
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Nov 23, 2024
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Dec 2, 2024
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Dec 7, 2024
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Dec 21, 2024
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Jan 26, 2025
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Jan 31, 2025
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Feb 16, 2025
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Mar 4, 2025
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Mar 29, 2025
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 2, 2025
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Apr 5, 2025
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 9, 2025
@renovate renovate Bot force-pushed the renovate/npm-nodemailer-vulnerability branch from c1d5d6b to e1d441d Compare August 10, 2025 15:01
@renovate renovate Bot force-pushed the renovate/npm-nodemailer-vulnerability branch from e1d441d to b74839d Compare October 7, 2025 16:52
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] chore(deps): update dependency nodemailer to v7 [security] Oct 7, 2025
@renovate renovate Bot force-pushed the renovate/npm-nodemailer-vulnerability branch from b74839d to 0f1d646 Compare October 15, 2025 22:35
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v7 [security] chore(deps): update dependency nodemailer to v6.9.9 [security] Oct 15, 2025
@renovate renovate Bot force-pushed the renovate/npm-nodemailer-vulnerability branch from 0f1d646 to d5f8a46 Compare November 10, 2025 21:02
@renovate renovate Bot force-pushed the renovate/npm-nodemailer-vulnerability branch from d5f8a46 to a36008a Compare December 3, 2025 20:04
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 15, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Apr 17, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 19, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Apr 20, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 21, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Apr 22, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 23, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Apr 23, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] Update dependency nodemailer to v6.9.9 [SECURITY] - abandoned Apr 27, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] - abandoned Update dependency nodemailer to v6.9.9 [SECURITY] Apr 27, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 29, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Apr 29, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Apr 30, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] May 1, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] May 12, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] May 12, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] May 14, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] May 15, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] May 18, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] May 19, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] May 22, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] May 23, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] May 28, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] May 29, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Jun 1, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Jun 2, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Jun 11, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Jun 12, 2026
@renovate renovate Bot changed the title Update dependency nodemailer to v6.9.9 [SECURITY] chore(deps): update dependency nodemailer to v6.9.9 [security] Jun 18, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nodemailer to v6.9.9 [security] Update dependency nodemailer to v6.9.9 [SECURITY] Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants