Skip to content

[fix] nodemailer vulnerable version#429

Open
CharlesArea wants to merge 1 commit intoaliyun:developfrom
CharlesArea:develop
Open

[fix] nodemailer vulnerable version#429
CharlesArea wants to merge 1 commit intoaliyun:developfrom
CharlesArea:develop

Conversation

@CharlesArea
Copy link
Copy Markdown

nodemailer 4.0.1 有兩個比較嚴重的vulnerabilities,

  1. Command Injection CVE-2020-7769
    例如 -
-bi@example.com (-bi Initialize the alias database.)
-d0.1a@example.com (The option -d0.1 prints the version of Sendmail and the options it was compiled with.)
-Dfilename@example.com (Debug output file)
  1. HTTP Header Injection CVE-2021-23400
    例如 -
const userEmail = 'foo@bar.comrnSubject: foobar'; // imagine this comes from e.g. HTTP request params or is otherwise user-controllable
await transporter.sendMail({
from: '...',
to: '...',
replyTo: {
name: 'Customer',
address: userEmail,
},
subject: 'My Subject',
text: message,
});

建議從 4.0.1 升級到 6.7.2 / 6.6.1 (暫時沒有發現相容性的問題)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 18, 2022

CLA assistant check
All committers have signed the CLA.

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.

2 participants