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

Vulnerabilities in dependencies #63

Closed
Berkmann18 opened this issue Jan 4, 2018 · 8 comments
Closed

Vulnerabilities in dependencies #63

Berkmann18 opened this issue Jan 4, 2018 · 8 comments

Comments

@Berkmann18
Copy link

After running an NSP scan, I discovered that this package was using vulnerable versions of both qs and mime that needs to be updated to version v7 and v2.0.3 respectively.
Sources:
https://nodesecurity.io/advisories/535

@thinkingserious
Copy link
Contributor

Thanks for the heads up @Berkmann18! This is our backlog for a fix; however, PRs are always welcome :)

@Berkmann18
Copy link
Author

I'm currently updated the relevant changes but after running npm test there seem to be quite a few things that needs to be done (which I'm not familiar with) such as:

  • Adding a docker file
    And others where I'm not really in the position to write such as:
  • ISSUE_TEMPLATE
  • TROUBLESHOOTING.md
  • USE_CASES.md

So here's the output of the test (after updating the mocha (due to jade being deprecated in the versions this package was using) and sendgrid (as I mentioned above):

 LICENSE
    ✓ should have correct end year

  sendgrid-transport
    ✓ should take an api_user and api_key
    ✓ should take an apikey
    ✓ should have a name and version

  nodemailer-sendgrid-transport repo
Dockerfile doesn't exist.
docker/Dockerfile doesn't exist.
    1) should have ./Dockerfile or docker/Dockerfile
docker-compose.yml doesn't exist.
docker/docker-compose.yml doesn't exist.
    2) should have ./docker-compose.yml or ./docker/docker-compose.yml file
    ✓ should have ./.env_sample file
    ✓ should have ./.gitignore file
    ✓ should have ./.travis.yml file
    ✓ should have ./.codeclimate.yml file
    ✓ should have ./CHANGELOG.md file
    ✓ should have ./CODE_OF_CONDUCT.md file
    ✓ should have ./CONTRIBUTING.md file
.github/ISSUE_TEMPLATE doesn't exist.
    3) should have ./.github/ISSUE_TEMPLATE file
LICENSE.md doesn't exist.
    ✓ should have ./LICENSE.md file
    ✓ should have ./.github/PULL_REQUEST_TEMPLATE file
    ✓ should have ./README.md file
TROUBLESHOOTING.md doesn't exist.
    4) should have ./TROUBLESHOOTING.md file
    ✓ should have ./USAGE.md file
USE_CASES.md doesn't exist.
    5) should have ./USE_CASES.md file


  15 passing (9ms)
  5 failing

  1) nodemailer-sendgrid-transport repo should have ./Dockerfile or docker/Dockerfile:

      AssertionError [ERR_ASSERTION]: false == true
      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (test/test.js:6:5)

  2) nodemailer-sendgrid-transport repo should have ./docker-compose.yml or ./docker/docker-compose.yml file:

      AssertionError [ERR_ASSERTION]: false == true
      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (test/test.js:10:5)

  3) nodemailer-sendgrid-transport repo should have ./.github/ISSUE_TEMPLATE file:

      AssertionError [ERR_ASSERTION]: false == true
      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (test/test.js:42:5)

  4) nodemailer-sendgrid-transport repo should have ./TROUBLESHOOTING.md file:

      AssertionError [ERR_ASSERTION]: false == true
      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (test/test.js:58:5)

  5) nodemailer-sendgrid-transport repo should have ./USE_CASES.md file:

      AssertionError [ERR_ASSERTION]: false == true
      + expected - actual

      -false
      +true
      
      at Context.<anonymous> (test/test.js:66:5)



npm ERR! Test failed.  See above for more details.

@Berkmann18
Copy link
Author

Other than that ^, I get this after running nsp check so it seems that the changes resolve those vulnerability issues.

(+) No known vulnerabilities found

@mbernier
Copy link
Contributor

mbernier commented Jan 5, 2018

Those files are ok that they are failing, this is a result of us having PRs left over from Hacktoberfest. If the other tests are passing, we are g2g

@Berkmann18
Copy link
Author

Berkmann18 commented Jan 5, 2018

So can I submit a PR without worrying about those fails?
This should also resolve #25 .

@thinkingserious
Copy link
Contributor

@Berkmann18,

Yes and thank you!

Berkmann18 added a commit to Berkmann18/nodemailer-sendgrid-transport that referenced this issue Jan 7, 2018
License date changed to an up-to-date one
This commit should resolve sendgrid#25 and sendgrid#63.
@Berkmann18
Copy link
Author

Since these vulnerabilities regarding the aforementioned dependencies were resolved, I'm closing this issue.

@thinkingserious
Copy link
Contributor

Thanks @Berkmann18!

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

Successfully merging a pull request may close this issue.

3 participants