[Snyk] Upgrade axios from 1.5.0 to 1.11.0#74
Conversation
Snyk has created this PR to upgrade axios from 1.5.0 to 1.11.0. See this package in npm: axios See this project in Snyk: https://app.snyk.io/org/newtonombese1/project/01e366e5-561e-4db1-8c70-c111fa271e03?utm_source=github&utm_medium=referral&page=upgrade-pr
There was a problem hiding this comment.
Summary of Changes
Hello @nejidevelops, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request performs an automated security upgrade of the axios HTTP client library. The primary goal is to enhance the project's security posture by incorporating the latest fixes for known vulnerabilities in axios and its underlying dependencies. This ensures the application benefits from improved stability and protection against potential exploits.
Highlights
- Dependency Upgrade: Upgraded the
axiospackage from version1.5.0to1.11.0. - Security Fixes: This upgrade addresses multiple high and medium severity vulnerabilities, including Cross-site Request Forgery (CSRF), Prototype Pollution, Server-side Request Forgery (SSRF), Improper Handling of Extra Parameters, Information Exposure, and Regular Expression Denial of Service (ReDoS).
- Transitive Dependency Updates: The
axiosupgrade triggered updates to several transitive dependencies, notablyajv(from6.12.6to8.17.1),follow-redirects(from1.15.2to1.15.11), andform-data(from4.0.0to4.0.4), along with various other internal dependency consolidations and version bumps withinpackage-lock.json.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Code Review
This pull request upgrades axios from version 1.5.0 to 1.11.0, which is a welcome security update that resolves several vulnerabilities. I have reviewed the changes and the potential impact on the project. The upgrade of axios is a significant jump across multiple minor versions. I've checked the release notes, particularly for the breaking change in version 1.8.0 related to URL handling. The application's usage of axios in src/redux/footballSlice.js is straightforward and does not use the baseURL configuration, so it should not be affected by this change. The package-lock.json file has been updated extensively, including major version bumps for other dependencies like ajv. These changes appear to be side-effects of running npm install after the axios upgrade and seem to be handled correctly by npm's dependency resolution mechanism. Overall, the change seems safe and is important for the security of the project. I approve these changes.
Snyk has created this PR to upgrade axios from 1.5.0 to 1.11.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 31 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-AXIOS-6032459
SNYK-JS-AXIOS-6144788
SNYK-JS-AXIOS-7361793
SNYK-JS-FOLLOWREDIRECTS-6141137
SNYK-JS-FOLLOWREDIRECTS-6444610
SNYK-JS-AXIOS-6124857
SNYK-JS-AXIOS-9292519
SNYK-JS-AXIOS-9403194
Release notes
Package name: axios
-
1.11.0 - 2025-07-23
- form-data npm pakcage (#6970) (e72c193)
- prevent RangeError when using large Buffers (#6961) (a2214ca)
- types: resolve type discrepancies between ESM and CJS TypeScript declaration files (#6956) (8517aa1)
izzy goldman
Manish Sahani
Noritaka Kobayashi
James Nail
Tejaswi1305
-
1.10.0 - 2025-06-14
- adapter: pass fetchOptions to fetch function (#6883) (0f50af8)
- form-data: convert boolean values to strings in FormData serialization (#6917) (5064b10)
- package: add module entry point for React Native; (#6933) (3d343b8)
- types: improved fetchOptions interface (#6867) (63f1fce)
Dmitriy Mozgovoy
Noritaka Kobayashi
Dimitrios Lazanas
Adrian Knapp
Howie Zhao
Uhyeon Park
Sampo Silvennoinen
-
1.9.0 - 2025-04-24
- core: fix the Axios constructor implementation to treat the config argument as optional; (#6881) (6c5d4cd)
- fetch: fixed ERR_NETWORK mapping for Safari browsers; (#6767) (dfe8411)
- headers: allow iterable objects to be a data source for the set method; (#6873) (1b1f9cc)
- headers: fix
- headers: fixed support for setting multiple header values from an iterated source; (#6885) (f7a3b5e)
- http: send minimal end multipart boundary (#6661) (987d2e2)
- types: fix autocomplete for adapter config (#6855) (e61a893)
- AxiosHeaders: add getSetCookie method to retrieve set-cookie headers values (#5707) (80ea756)
Dmitriy Mozgovoy
Jay
Willian Agostini
George Cheng
FatahChan
Ionuț G. Stan
-
1.8.4 - 2025-03-19
- buildFullPath: handle
Marc Hassan
-
1.8.3 - 2025-03-12
- add missing type for allowAbsoluteUrls (#6818) (10fa70e)
- xhr/fetch: pass
Ashcon Partovi
StefanBRas
Marc Hassan
-
1.8.2 - 2025-03-07
- http-adapter: add allowAbsoluteUrls to path building (#6810) (fb8eec2)
Fasoro-Joseph Alexander
-
1.8.1 - 2025-02-26
- utils: move
Dmitriy Mozgovoy
-
1.8.0 - 2025-02-26
- examples: application crashed when navigating examples in browser (#5938) (1260ded)
- missing word in SUPPORT_QUESTION.yml (#6757) (1f890b1)
- utils: replace getRandomValues with crypto module (#6788) (23a25af)
- Add config for ignoring absolute URLs (#5902) (#6192) (32c7bcc)
- Revert "chore: expose fromDataToStream to be consumable (#6731)" (#6732) (1317261), closes #6731 #6732
-
-
-
-
Michael Toscano
Willian Agostini
Naron
shravan || श्रvan
Justin Dhillon
yionr
Shin'ya Ueoka
Dan Dascalescu
Nitin Ramnani
Shay Molcho
Jay
- fancy45daddy
Habip Akyol
Bailey Lissington
Bernardo da Eira Duarte
Shivam Batham
Lipin Kariappa
-
1.7.9 - 2024-12-04
- Revert "fix(types): export CJS types from ESM (#6218)" (#6729) (c44d2f2), closes #6218 #6729
Jay
-
1.7.8 - 2024-11-25
-
1.7.7 - 2024-08-31
-
1.7.6 - 2024-08-30
-
1.7.5 - 2024-08-23
-
1.7.4 - 2024-08-13
-
1.7.3 - 2024-08-01
-
1.7.2 - 2024-05-21
-
1.7.1 - 2024-05-20
-
1.7.0 - 2024-05-19
-
1.7.0-beta.2 - 2024-05-19
-
1.7.0-beta.1 - 2024-05-07
-
1.7.0-beta.0 - 2024-04-28
-
1.6.8 - 2024-03-15
-
1.6.7 - 2024-01-25
-
1.6.6 - 2024-01-24
-
1.6.5 - 2024-01-05
-
1.6.4 - 2024-01-03
-
1.6.3 - 2023-12-26
-
1.6.2 - 2023-11-14
-
1.6.1 - 2023-11-08
-
1.6.0 - 2023-10-26
-
1.5.1 - 2023-09-26
-
1.5.0 - 2023-08-26
from axios GitHub release notesRelease notes:
Bug Fixes
Contributors to this release
Release notes:
Bug Fixes
Features
Contributors to this release
Release notes:
Bug Fixes
getSetCookieby using 'get' method for caseless access; (#6874) (d4f7df4)Features
Contributors to this release
Release notes:
Bug Fixes
allowAbsoluteUrls: falsewithoutbaseURL(#6833) (f10c2e0)Contributors to this release
Release notes:
Bug Fixes
allowAbsoluteUrlstobuildFullPathinxhrandfetchadapters (#6814) (ec159e5)Contributors to this release
Release notes:
Bug Fixes
Contributors to this release
Release notes:
Bug Fixes
generateStringto platform utils to avoid importing crypto module into client builds; (#6789) (36a5a62)Contributors to this release
Release notes:
Bug Fixes
Features
Reverts
BREAKING CHANGES
code relying on the above will now combine the URLs instead of prefer request URL
feat: add config option for allowing absolute URLs
fix: add default value for allowAbsoluteUrls in buildFullPath
fix: typo in flow control when setting allowAbsoluteUrls
Contributors to this release
Release notes:
Reverts
Contributors to this release
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: