Skip to content

[Snyk] Security upgrade axios from 1.4.0 to 1.18.0#66

Open
snyk-io[bot] wants to merge 1 commit into
masterfrom
snyk-fix-fc7e6c4231aa41b463fef450d1dcdf15
Open

[Snyk] Security upgrade axios from 1.4.0 to 1.18.0#66
snyk-io[bot] wants to merge 1 commit into
masterfrom
snyk-fix-fc7e6c4231aa41b463fef450d1dcdf15

Conversation

@snyk-io

@snyk-io snyk-io Bot commented Jul 21, 2026

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 7 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • yarn.lock

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Prototype Pollution
SNYK-JS-AXIOS-18065351
  274  
medium severity Prototype Pollution
SNYK-JS-AXIOS-18060659
  146  
medium severity Uncontrolled Recursion
SNYK-JS-AXIOS-18060730
  89  
medium severity Prototype Pollution
SNYK-JS-AXIOS-18065349
  84  
medium severity Allocation of Resources Without Limits or Throttling
SNYK-JS-AXIOS-18060165
  82  
medium severity Uncontrolled Recursion
SNYK-JS-AXIOS-18060167
  82  
medium severity Prototype Pollution
SNYK-JS-AXIOS-18065355
  82  

Breaking Change Risk

Merge Risk: Medium

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Allocation of Resources Without Limits or Throttling
🦉 Uncontrolled Recursion
🦉 Prototype Pollution

@snyk-io

snyk-io Bot commented Jul 21, 2026

Copy link
Copy Markdown
Author

Merge Risk: Medium

This is a minor version upgrade for axios from 1.4.0 to 1.18.0. While it does not contain major API breaking changes, it introduces several behavioral modifications due to significant security hardening across multiple releases. Verification is recommended.

Key Changes:

  • Stricter URL Parsing: Starting with v1.18.0, axios enforces stricter URL validation and will reject malformed URLs (e.g., http: without //) that may have been accepted previously.
  • Redirect and Header Safety: The behavior of redirects has been hardened. For instance, sensitive headers like custom authentication tokens may be stripped during cross-origin redirects in Node.js to prevent leaks.
  • Status Validation: The semantics for the validateStatus configuration have been improved, which could affect how request promises are resolved or rejected based on the response status.
  • Security Hardening: The versions include numerous security fixes for prototype pollution, Server-Side Request Forgery (SSRF), and other vulnerabilities. These fixes tighten validation and may cause previously working but insecure requests to fail.

Recommendation: Review your application's usage of axios, particularly if it involves complex redirects, proxy configurations, or relies on lenient URL parsing. It is important to test after upgrading to ensure these security enhancements do not unexpectedly break functionality.

Source: GitHub Releases

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@snyk-io

snyk-io Bot commented Jul 21, 2026

Copy link
Copy Markdown
Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants