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

Consider updating axios #141

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Nov 10, 2023

Bumps axios from 0.25.0 to 1.6.0.

Release notes

Sourced from axios's releases.

Release v1.6.0

Release notes:

Bug Fixes

PRs

  • CVE 2023 45857 ( #6028 )

⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459

Contributors to this release

Release v1.5.1

Release notes:

Bug Fixes

  • adapters: improved adapters loading logic to have clear error messages; (#5919) (e410779)
  • formdata: fixed automatic addition of the Content-Type header for FormData in non-browser environments; (#5917) (bc9af51)
  • headers: allow content-encoding header to handle case-insensitive values (#5890) (#5892) (4c89f25)
  • types: removed duplicated code (9e62056)

Contributors to this release

Release v1.5.0

Release notes:

Bug Fixes

  • adapter: make adapter loading error more clear by using platform-specific adapters explicitly (#5837) (9a414bb)
  • dns: fixed cacheable-lookup integration; (#5836) (b3e327d)
  • headers: added support for setting header names that overlap with class methods; (#5831) (d8b4ca0)
  • headers: fixed common Content-Type header merging; (#5832) (8fda276)

Features

... (truncated)

Changelog

Sourced from axios's changelog.

1.6.0 (2023-10-26)

Bug Fixes

PRs

  • CVE 2023 45857 ( #6028 )

⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459

Contributors to this release

1.5.1 (2023-09-26)

Bug Fixes

  • adapters: improved adapters loading logic to have clear error messages; (#5919) (e410779)
  • formdata: fixed automatic addition of the Content-Type header for FormData in non-browser environments; (#5917) (bc9af51)
  • headers: allow content-encoding header to handle case-insensitive values (#5890) (#5892) (4c89f25)
  • types: removed duplicated code (9e62056)

Contributors to this release

PRs

  • CVE 2023 45857 ( #6028 )

⚠️ Critical vulnerability fix. See https://security.snyk.io/vuln/SNYK-JS-AXIOS-6032459

1.5.0 (2023-08-26)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [axios](https://github.com/axios/axios) from 0.25.0 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.25.0...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 10, 2023
@chris-oleson
Copy link

+1

@WestonThayer
Copy link

WestonThayer commented Nov 13, 2023

Note that GHSA-wf5p-g6vw-rhxx is scoped to axios instances that set withCredentials: true, which postmark.js does not, so there shouldn't be an exploit here.

I'm guessing CI is failing because axios switched to ESM at 1.0.0.

@martinez-hugo
Copy link

  • 1

@richardsimko
Copy link

Perhaps this project should drop support for EOL Node versions? Node 4 (On which the tests are failing) has not been supported since 2018.

@ibalosh ibalosh mentioned this pull request Nov 22, 2023
@ibalosh
Copy link
Contributor

ibalosh commented Nov 22, 2023

NOTE

Hey everybody, axios recently patched CVE-2023-45857 bug, which this PR relates too.

As @WestonThayer mentioned, this issue doesn't not affect Postmark Node JS, since we are not using withCredentials on instance creation nor we plan to, which was part of the patch in latest version of axios.

We are checking out though direction we want to take with axios and node support, so I will keep this PR open and keep you up to date .

@ibalosh ibalosh changed the title Bump axios from 0.25.0 to 1.6.0 Consider updating axios Nov 27, 2023
@FabianFrank
Copy link

My recommendation would be to drop support for unsupported nodejs versions and update axios. I'm assuming your HTTP API is fairly stables so old SDKs would most likely keep working for a long time for people on legacy nodejs versions. While technically axios isn't affected, everyone that's up to date on their dependencies and vulnerabilities pays the cost of researching the issue and checking if postmark.js is affected or not. Users on outdated nodejs versions have bigger issues either way and are most likely not updating and tracking dependencies anyways.

Copy link
Author

dependabot bot commented on behalf of github Dec 4, 2023

Looks like axios is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Dec 4, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/axios-1.6.0 branch December 4, 2023 10:48
@ibalosh
Copy link
Contributor

ibalosh commented Dec 4, 2023

we have released updated version of the library and dropped support for most EOL node js versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants