-
Notifications
You must be signed in to change notification settings - Fork 1
[Snyk] Upgrade axios from 1.4.0 to 1.13.2 #196
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
base: main
Are you sure you want to change the base?
Conversation
Snyk has created this PR to upgrade axios from 1.4.0 to 1.13.2. See this package in npm: axios See this project in Snyk: https://app.snyk.io/org/codingdud/project/fbe45036-7a9d-4ede-9cf4-9331e0bb4a97?utm_source=github&utm_medium=referral&page=upgrade-pr
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary of ChangesHello @codingdud, 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, automatically generated by Snyk, updates the Highlights
Using Gemini Code AssistThe 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 by creating a comment using either
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 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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request, automatically generated by Snyk, upgrades axios from version 1.4.0 to 1.13.2. This is a crucial security update that addresses several high-severity vulnerabilities, including Cross-site Request Forgery (CSRF), Prototype Pollution, and Server-side Request Forgery (SSRF). The changes are limited to package.json and package-lock.json and are correct. I have reviewed the usage of axios in the codebase, and the upgrade to version 1.13.2 is not expected to introduce any breaking changes to the existing functionality. Merging this PR is highly recommended to improve the application's security posture.
While reviewing the files that use axios, I identified several areas for improvement that are outside the scope of this PR but should be addressed in a follow-up:
- Error Handling: In
Updatefrom.js, theaxios.getcall in theuseEffecthook lacks a.catch()block, which can lead to unhandled promise rejections. Throughout bothcform.jsandUpdatefrom.js, API call errors are only logged to the console. It would be better to provide user-facing feedback (e.g., using toasts) for failed operations. - Debugging Code: There are multiple
console.logstatements incform.jsandUpdatefrom.jsthat should be removed. - Component Logic: In
Updatefrom.js, there's a conditionif(formData===undefined||formData==={})which is likely incorrect for checking an empty object. The expressionformData==={}will always evaluate to false.
I recommend creating a technical debt ticket to track and fix these issues.
Snyk has created this PR to upgrade axios from 1.4.0 to 1.13.2.
ℹ️ 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 38 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-AXIOS-12613773
SNYK-JS-AXIOS-6124857
SNYK-JS-AXIOS-9292519
SNYK-JS-AXIOS-9403194
SNYK-JS-FOLLOWREDIRECTS-6444610
Release notes
Package name: axios
-
1.13.2 - 2025-11-04
- http: fix 'socket hang up' bug for keep-alive requests when using timeouts; (#7206) (8d37233)
- http: use default export for http2 module to support stubs; (#7196) (0588880)
- http: fix early loop exit; (#7202) (12c314b)
Dmitriy Mozgovoy
Kasper Isager Dalsgarð
-
1.13.1 - 2025-10-28
- http: fixed a regression that caused the data stream to be interrupted for responses with non-OK HTTP statuses; (#7193) (bcd5581)
Anchal Singh
Dmitriy Mozgovoy
-
1.13.0 - 2025-10-27
- fetch: prevent TypeError when config.env is undefined (#7155) (015faec)
- resolve issue #7131 (added spacing in mergeConfig.js) (#7133) (9b9ec98)
- http: add HTTP2 support; (#7150) (d676df7)
Dmitriy Mozgovoy
Noritaka Kobayashi
Aviraj2929
prasoon patel
Samyak Dandge
Anchal Singh
Rahul Kumar
Amit Verma
Abhishek3880
Dhvani Maktuporia
Usama Ayoub
ikuy1203
Nikhil Simon Toppo
Jane Wangari
Supakorn Ieamgomol
Kian-Meng Ang
UTSUMI Keiji
-
1.12.2 - 2025-09-14
- fetch: use current global fetch instead of cached one when env fetch is not specified to keep MSW support; (#7030) (cf78825)
Dmitriy Mozgovoy
Noritaka Kobayashi
-
1.12.1 - 2025-09-12
- types: fixed env config types; (#7020) (b5f26b7)
Dmitriy Mozgovoy
-
1.12.0 - 2025-09-11
- adding build artifacts (9ec86de)
- dont add dist on release (a2edc36)
- fetch-adapter: set correct Content-Type for Node FormData (#6998) (a9f47af)
- node: enforce maxContentLength for data: URLs (#7011) (945435f)
- package exports (#5627) (aa78ac2)
- params: removing '[' and ']' from URL encode exclude characters (#3316) (#5715) (6d84189)
- release pr run (fd7f404)
- types: change the type guard on isCancel (#5595) (0dbb7fd)
- adapter: surface low‑level network error details; attach original error via cause (#6982) (78b290c)
- fetch: add fetch, Request, Response env config variables for the adapter; (#7003) (c959ff2)
- support reviver on JSON.parse (#5926) (2a97634), closes #5924
- types: extend AxiosResponse interface to include custom headers type (#6782) (7960d34)
Willian Agostini
Dmitriy Mozgovoy
khani
Ameer Assadi
Emiedonmokumo Dick-Boro
Zeroday BYTE
Jason Saayman
최예찬
Gligor Kotushevski
Aleksandar Dimitrov
-
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
-
1.8.4 - 2025-03-19
-
1.8.3 - 2025-03-12
-
1.8.2 - 2025-03-07
-
1.8.1 - 2025-02-26
-
1.8.0 - 2025-02-26
-
1.7.9 - 2024-12-04
-
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
-
1.4.0 - 2023-04-27
from axios GitHub release notesRelease notes:
Bug Fixes
Performance Improvements
Contributors to this release
Release notes:
Bug Fixes
Contributors to this release
Release notes:
Bug Fixes
Features
Contributors to this release
Release notes:
Bug Fixes
Contributors to this release
Release notes:
Bug Fixes
Contributors to this release
Release notes:
Bug Fixes
Features
Contributors to this release
Release notes:
Bug Fixes
Contributors to this release
Release notes:
Bug Fixes
Features
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: