sendgrid-nodejs icon indicating copy to clipboard operation
sendgrid-nodejs copied to clipboard

fix(axios): updated axios version to fix critical vulnerability

Open joserodriguezjll opened this issue 1 year ago • 26 comments

Fixes

  • Updated axios version to fix critical vulnerability

Checklist

  • [x] I acknowledge that all my contributions will be made under the project's license
  • [x] I have made a material change to the repo (functionality, testing, spelling, grammar)
  • [x] I have read the Contribution Guidelines and my PR follows them
  • [x] I have titled the PR appropriately
  • [x] I have updated my branch with the main branch
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] I have added the necessary documentation about the functionality in the appropriate .md file
  • [x] I have added inline documentation to the code I modified

If you have questions, please file a support ticket.

joserodriguezjll avatar Nov 06 '23 12:11 joserodriguezjll

this is an important fix needed, is there any reason the tests are not running ?

huineng avatar Nov 10 '23 09:11 huineng

this is an important fix needed, is there any reason the tests are not running ?

No idea, let's see if some of the product developers can check this issue and check the problem with the tests

joserodriguezjll avatar Nov 10 '23 11:11 joserodriguezjll

this is an important fix needed, is there any reason the tests are not running ?

No idea, let's see if some of the product developers can check this issue and check the problem with the tests

Hi there, I approved the tests run, this change is failing at build validation. I have added this item to the backlog to be prioritised soon.

shrutiburman avatar Nov 10 '23 11:11 shrutiburman

can someone look at this error, doesn't look like an axios problem but with the test itself Thanks

huineng avatar Nov 13 '23 16:11 huineng

Hi! I will be looking into this and include it in the next release

tiwarishubham635 avatar Nov 13 '23 16:11 tiwarishubham635

Hi @tiwarishubham635, when will the next release be?

alexbaramilis avatar Nov 14 '23 09:11 alexbaramilis

Hi @tiwarishubham635, when will the next release be?

This thursday

tiwarishubham635 avatar Nov 14 '23 12:11 tiwarishubham635

Hi @tiwarishubham635, when will the next release be?

This thursday

Great, thanks!

alexbaramilis avatar Nov 14 '23 12:11 alexbaramilis

@tiwarishubham635 will other packages that use the @sendgrid/client (like @sendgrid/mail) be updated as well?

selrond avatar Nov 14 '23 13:11 selrond

@tiwarishubham635 will other packages that use the @sendgrid/client (like @sendgrid/mail) be updated as well?

Yes, since the changes are in the package version of axios, all the affected places will be modified. I hope that answers your query.

tiwarishubham635 avatar Nov 14 '23 13:11 tiwarishubham635

@tiwarishubham635 The current version of Axios only supports Node.js 12.x and above: https://github.com/axios/axios/blob/9588fcdec8aca45c3ba2f7968988a5d03f23168c/.github/workflows/ci.yml#L15

Node.js 6 is no longer in Long Term Support and has security vulnerabilities. My recommendation would be to treat this as a breaking change, drop support for older unsupported Node.js versions, then bump the major version.

You'll likely find that the these tests for Node.js 7, 8, and 10 will also fail the same way - they were skipped because the test for 6 failed.

ebickle avatar Nov 15 '23 17:11 ebickle

@tiwarishubham635 The current version of Axios only supports Node.js 12.x and above: https://github.com/axios/axios/blob/9588fcdec8aca45c3ba2f7968988a5d03f23168c/.github/workflows/ci.yml#L15

Node.js 6 is no longer in Long Term Support and has security vulnerabilities. My recommendation would be to treat this as a breaking change, drop support for older unsupported Node.js versions, then bump the major version.

You'll likely find that the these tests for Node.js 7, 8, and 10 will also fail the same way - they were skipped because the test for 6 failed.

Yes, we have already identified this issue and are in the process of removing the older node versions. Once it is done, this PR will be merged

tiwarishubham635 avatar Nov 16 '23 06:11 tiwarishubham635

@tiwarishubham635 @shrutiburman "Thursday" is Not sure if it was last Thursday or this Thursday, but it looks like they did the old Node.js drop in #1390, so hopefully it will be merged soon.

k725 avatar Nov 21 '23 06:11 k725

Hi There, Yes, the PR is in review, once it's merged the changes will be picked up in the upcoming release next week. We follow a bi-weekly release cadence.

shrutiburman avatar Nov 23 '23 13:11 shrutiburman

Related PR: https://github.com/sendgrid/sendgrid-nodejs/pull/1391

shrutiburman avatar Nov 30 '23 11:11 shrutiburman

@joserodriguezjll when you have a chance can you merge main into your branch?

mvanzoest avatar Dec 01 '23 17:12 mvanzoest

Okay, guys, maybe it will get updated in a few weeks.

image

Capta1nRaj avatar Dec 01 '23 18:12 Capta1nRaj

What is the ETA to get this merged & released?

tovbinm avatar Dec 05 '23 00:12 tovbinm

@joserodriguezjll when you have a chance can you merge main into your branch?

This is a pretty critical issue for us and many others - perhaps the sendgrid team might want to drive this forwards without waiting for an external contributor?

alsiola avatar Dec 05 '23 10:12 alsiola

Na guys, main question is when will the npm package will get updated? I think the already merged/fixed the issue in Github repo, but not updated the npm module, btw is this correct npm module na? Because I am using this in my projects.

https://www.npmjs.com/package/@sendgrid/mail

Capta1nRaj avatar Dec 05 '23 10:12 Capta1nRaj

Hey everyone, sendgrid-nodejs with axios update is released! v8.0.0. It's available in npm.

Keeping this PR open for a couple days more, please reach out if you face any issues. Apologies for the delay.

shrutiburman avatar Dec 05 '23 12:12 shrutiburman

Let's gooooooooooooooooooooooooooooooooo.

Capta1nRaj avatar Dec 05 '23 15:12 Capta1nRaj

Has anyone had success using 8.0.0? I am seeing an issue as described here https://github.com/sendgrid/sendgrid-nodejs/pull/1391#issuecomment-1846451872 - axios3 is not a function

Also is there a reason Issues are disabled on this GitHub repo? I would like to raise this in the right place rather than in the comments section on several PRs.

jakebanks avatar Jan 06 '24 05:01 jakebanks

Has anyone had success using 8.0.0? I am seeing an issue as described here #1391 (comment) - axios3 is not a function

Also is there a reason Issues are disabled on this GitHub repo? I would like to raise this in the right place rather than in the comments section on several PRs.

Using it since the launch, never faced any issue till now mate.

Capta1nRaj avatar Jan 06 '24 19:01 Capta1nRaj

Has anyone had success using 8.0.0? I am seeing an issue as described here #1391 (comment) - axios3 is not a function

Also is there a reason Issues are disabled on this GitHub repo? I would like to raise this in the right place rather than in the comments section on several PRs.

I was thinking to shift from sendgrid soon, their service getting poor, & new clients onboarding issue too.

Capta1nRaj avatar Jan 06 '24 19:01 Capta1nRaj

This seems to be addressed in #1394, but three months to fix a vulnerability flagged as critical? Yikes.

mannieschumpert avatar Feb 08 '24 02:02 mannieschumpert