Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency nodemailer to v6.9.9 [security] #605

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nodemailer (source) 6.9.6 -> 6.9.9 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2020-7769

This affects the package nodemailer before 6.4.16. Use of crafted recipient email addresses may result in arbitrary command flag injection in sendmail transport for sending mails.

CVE-2021-23400

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.

GHSA-9h6g-pr28-7cqp

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

Impact

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


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)

Configuration

📅 Schedule: Branch creation - "" in timezone Europe/Paris, 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 these updates again.


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

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

@renovate renovate bot added the dependencies label Feb 1, 2024
@renovate renovate bot changed the title fix(deps): update dependency nodemailer to v6.9.9 [security] fix(deps): update dependency nodemailer to v6.9.9 [security] - autoclosed Feb 23, 2024
@renovate renovate bot closed this Feb 23, 2024
@renovate renovate bot deleted the renovate/npm-nodemailer-vulnerability branch February 23, 2024 23:31
@renovate renovate bot restored the renovate/npm-nodemailer-vulnerability branch February 24, 2024 01:37
@renovate renovate bot changed the title fix(deps): update dependency nodemailer to v6.9.9 [security] - autoclosed fix(deps): update dependency nodemailer to v6.9.9 [security] Feb 24, 2024
@renovate renovate bot reopened this Feb 24, 2024
Copy link

sonarcloud bot commented Feb 24, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 19.7 kB dougwilson
npm/[email protected] None 0 1.4 MB david
npm/[email protected] None 0 921 kB david
npm/[email protected] None +5 6.86 MB dolanmiu
npm/[email protected] None 0 130 kB jackbowman
npm/[email protected] None +1 64.2 MB eleith
npm/[email protected] environment 0 189 kB jonschlinkert
npm/[email protected] unsafe Transitive: environment, eval, filesystem +22 72.5 MB vercel-release-bot
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +11 4.48 MB lydell
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +12 5.57 MB jounqin
npm/[email protected] filesystem, unsafe Transitive: environment, eval +11 5.52 MB ljharb
npm/[email protected] filesystem Transitive: environment, eval, unsafe +21 72.9 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +11 5.14 MB ljharb
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +12 15.8 MB jounqin
npm/[email protected] environment Transitive: eval, filesystem, unsafe +11 4.58 MB gaearon
npm/[email protected] filesystem Transitive: environment, eval, unsafe +11 5.24 MB ljharb
npm/[email protected] Transitive: environment, eval, filesystem, unsafe +11 4.5 MB lydell
npm/[email protected] None +1 159 kB leo-buneev
npm/[email protected] None 0 78.4 kB eslintbot
npm/[email protected] filesystem Transitive: environment, eval, unsafe +10 4.46 MB eslintbot
npm/[email protected] None 0 72.9 kB eslintbot
npm/[email protected] None 0 15.2 kB rich_harris
npm/[email protected] None 0 10.1 MB marak
npm/[email protected] None 0 36 kB endless
npm/[email protected] None 0 43.5 kB mikolalysenko
npm/[email protected] Transitive: environment +1 707 kB remarkablemark
npm/[email protected] filesystem, shell 0 6.06 kB typicode
npm/[email protected] None 0 90.7 kB jakesgordon
npm/[email protected] None 0 4.74 kB simenb
npm/[email protected] None 0 38.6 kB dankogai
npm/[email protected] eval 0 291 kB vitaly
npm/[email protected] Transitive: filesystem +1 15 MB someatoms
npm/[email protected] filesystem 0 14.7 MB mrjameshall
npm/[email protected] None 0 762 kB stuk
npm/[email protected] None 0 106 kB okonet
npm/[email protected] filesystem, network 0 4.86 MB djfarrelly
npm/[email protected] None 0 10.5 kB tigt
npm/[email protected] None 0 8.97 kB iryusa
npm/[email protected] filesystem 0 27.9 kB linusu
npm/[email protected] environment, network +3 3.59 MB balazsorban
npm/[email protected] environment, filesystem, network, shell, unsafe +2 45 MB vercel-release-bot
npm/[email protected] environment, filesystem, unsafe 0 11.2 MB prettier-bot
npm/[email protected] Transitive: environment +1 347 kB dangreen
npm/[email protected] environment +1 3.28 MB gaearon
npm/[email protected] environment 0 291 kB gaearon
npm/[email protected] None 0 4.36 MB wendygaoyuan
npm/[email protected] None 0 20.9 kB simov
npm/[email protected] Transitive: environment +1 522 kB quietshu
npm/[email protected] environment, filesystem, unsafe +3 68.8 MB blakeembrey
npm/[email protected] None 0 64 MB typescript-bot
npm/[email protected] None 0 73.1 kB ethan_arrowood
npm/[email protected] Transitive: environment +1 347 kB xnimorz
npm/[email protected] None 0 421 kB nashwaan
npm/[email protected] None 0 23.4 kB dylang

🚮 Removed packages: npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@bcoe/[email protected], npm/@cspotcode/[email protected], npm/@eslint-community/[email protected], npm/@hapi/[email protected], npm/@hapi/[email protected], npm/@hapi/[email protected], npm/@humanwhocodes/[email protected], npm/@istanbuljs/[email protected], npm/@istanbuljs/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@jest/[email protected], npm/@napi-rs/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@next/[email protected], npm/@node-rs/[email protected], npm/@one-ini/[email protected], npm/@pkgr/[email protected], npm/@sinonjs/[email protected], npm/@sinonjs/[email protected], npm/@tootallnate/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@tsconfig/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants