-
Notifications
You must be signed in to change notification settings - Fork 17
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
Replace nodemailer-smtp-transport with nodemailer #494
base: master
Are you sure you want to change the base?
Replace nodemailer-smtp-transport with nodemailer #494
Conversation
Resolves nested dep vuln GHSA-cf4h-3jhx-xvhq
Looks good, I will just publish and test it with brp |
Hi @robertdeniszczyc2 here is a beta package 22.0.3-nodemailer-dependency-beta |
Hi @robertdeniszczyc2 unfortunately, I'm seeing an error on the brp form, here is the PR Here is the stack trace
I'll look into it and see if I can identify the issue |
Hi @sulthan-ahmed , I've put a comment on the BRP PR with a possible fix and reason why it's failing: UKHomeOffice/brp_enquiry_forms#801 (comment) Thanks, |
Hi @robertdeniszczyc2 thanks again for your efforts. As discussed this broke brp but we were able to fix it with a simple change. I've put the PR here for reference UKHomeOffice/brp_enquiry_forms#801 This was the original code
which was fixed with
This is a breaking change so we will need to amend the ChangeLog. Once that's done, I'll can publish the change. Do you want to amend it in your PR or shall I do it for you? |
Resolves nested dep vuln GHSA-cf4h-3jhx-xvhq
- Removed the nodemailer-smtp-transport dependency as it is redundant and introduces a flagged critical vulnerability. - Updated CHANGELOG.md to reflect the changes.
…nd-introduces-flagged-critical-vulnerability' of github.com:UKHomeOfficeForms/hof into 489-dependency-nodemailer-smtp-transport-is-redundant-and-introduces-flagged-critical-vulnerability
…nd-introduces-flagged-critical-vulnerability' of github.com:UKHomeOfficeForms/hof into 489-dependency-nodemailer-smtp-transport-is-redundant-and-introduces-flagged-critical-vulnerability
…nd-introduces-flagged-critical-vulnerability' of github.com:UKHomeOfficeForms/hof into 489-dependency-nodemailer-smtp-transport-is-redundant-and-introduces-flagged-critical-vulnerability
Resolves nested dep vuln GHSA-cf4h-3jhx-xvhq
What?
Replaces nodemailer-smtp-transport dep with nodemailer
Why?
If you consume HOF in a project building with npm, there is a nested dependency vulnerability flagged which is ranked "Critical". The vulnerability is:
Arbitrary Code Execution in underscore - GHSA-cf4h-3jhx-xvhq
The issue is in the version of underscore which is nested within the nodemailer-smtp-transport dependency
How?
Replaces nodemailer-smtp-transport dep with nodemailer
Testing?
yarn test
has been run locally, but will require testing for regressions on a real HOF project to check that emails work OKScreenshots (optional)
N/A
Anything Else? (optional)
See linked issue for more information
Check list
here is an example commit