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

high severity vulnerability in netmask plugin #103

Closed
zhyrin opened this issue Mar 31, 2021 · 17 comments
Closed

high severity vulnerability in netmask plugin #103

zhyrin opened this issue Mar 31, 2021 · 17 comments

Comments

@zhyrin
Copy link

zhyrin commented Mar 31, 2021

  1. What kind of issue are you reporting?
  • A bug in a plugin of nodemailer-mailgun-transport ^2.0.2 (netmask plugin)
  • High severity vulnerability
  1. State your problem here:
    Run "npm audit" or "npm install" with nodemailer-mailgun-transport ^2.0.2
    gives me:
    "netmask npm package vulnerable to octal input data"
    "patched in >=2.0.1"

Netmask is used by up to 300k live projects. Vulnerability reported on about two days ago.

@orliesaurus
Copy link
Owner

Hey, I tried to patch the package-lock.json to use a NON-VULNERABLE version of netmask - I think it worked? Let me know what you're seeing now :)

@anachronic
Copy link

anachronic commented Apr 6, 2021

Looks fixed to me in a clean checkout + npm install

I'm still seeing it in a production project through yarn audit, though, I suspect it hasn't been published

@orliesaurus
Copy link
Owner

@anachronic I published in npm as 2.0.3 - https://www.npmjs.com/package/nodemailer-mailgun-transport

@rfox12
Copy link

rfox12 commented Apr 9, 2021

Apparently nodemailer-mailgun-transport id using a now non-official mailgun library? Is this an easy swap to the "official" version? Seems like the proper dependency should be "mailgun.js" and then that will alleviate the security vulnerability (and hopefully help for future issues). Discussion here: mailgun/mailgun.js#122

@zhyrin
Copy link
Author

zhyrin commented Apr 9, 2021

Yeah just change the dependency and rewrite the code bit of code that are used for the official library.
official plugin: https://www.npmjs.com/package/mailgun.js
deprecated plugin: https://www.npmjs.com/package/mailgun-js (its referenced in mailgun docs, hence the confusion)

official uses '...require=('mailgun.js) as opposed to ...require('mailgun-js')

Tired, but hope it was a tldr

@orliesaurus
Copy link
Owner

@zhyrin guess someone is gonna have to do some research to see how much code rewrite is needed

@zhyrin
Copy link
Author

zhyrin commented Apr 12, 2021

not interested

@anachronic
Copy link

@zhyrin guess someone is gonna have to do some research to see how much code rewrite is needed

Is #104 not a fix for this?

@orliesaurus
Copy link
Owner

not interested

great! at least you're honest about how you like open source

@orliesaurus
Copy link
Owner

orliesaurus commented Apr 12, 2021

Is #104 not a fix for this?

let me take a look

@omerlh
Copy link

omerlh commented May 4, 2021

Look like the latest version of mail gun is still vulnerable? https://snyk.io/advisor/npm-package/mailgun-js

@orliesaurus
Copy link
Owner

@omerlh We've upgraded to the other one - that one is deprecated

@omerlh
Copy link

omerlh commented May 5, 2021

Which one? I can see the latest version is still vulnerable: https://snyk.io/advisor/npm-package/nodemailer-mailgun-transport

@anachronic
Copy link

I believe this is solved in master (see #104), however, 2.0.3 (last version published) seems to point to the last commit before the fix.

Although I'm not sure, maybe publishing a new version solves this?

@shawncarr
Copy link

@orliesaurus can we get a new release based on @anachronic's point?

@orliesaurus
Copy link
Owner

Yeah I definitely need to push the update that is in master! Thanks y'all!

@axelauvinen
Copy link

Any timeline on this version bump? Should this ticket be closed before the latest version is updated to master?

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

No branches or pull requests

7 participants