Skip to content

[Snyk] Security upgrade axios from 0.25.0 to 1.15.0#27

Open
snyk-io[bot] wants to merge 1 commit intomainfrom
snyk-fix-20d26551768d38a8374e1c202122357b
Open

[Snyk] Security upgrade axios from 0.25.0 to 1.15.0#27
snyk-io[bot] wants to merge 1 commit intomainfrom
snyk-fix-20d26551768d38a8374e1c202122357b

Conversation

@snyk-io
Copy link
Copy Markdown

@snyk-io snyk-io bot commented Apr 10, 2026

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
⚠️ Warning
Failed to update the package-lock.json, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Unintended Proxy or Intermediary ('Confused Deputy')
SNYK-JS-AXIOS-15965856
  306  

Breaking Change Risk

Merge Risk: High

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-15965856
@snyk-io
Copy link
Copy Markdown
Author

snyk-io bot commented Apr 10, 2026

Merge Risk: High

The upgrade from axios v0.25.0 to v1.15.0 is a major version jump that includes several significant and mandatory breaking changes introduced in the v1.0.0 release. Direct code modifications will be required to ensure compatibility.

Key Breaking Changes:

  • ESM Import: The way axios is imported has changed. You must update your import statements from import { axios } from "axios"; to import axios from "axios";.
  • Request Headers: The common property has been removed from the request headers object. Code that sets headers like config.headers.common['Authorization'] will fail and must be updated to set the header directly, for example, config.headers['Authorization'].
  • Parameter Serialization: The methods for serializing URL parameters have undergone breaking changes. You must review the latest documentation to ensure your parameters are being serialized correctly.
  • Interceptor Types (TypeScript): For projects using TypeScript, the type for the config parameter in request interceptors has been updated, which may require type definition changes in your code.
  • Internal Exports: Previously exported internal utility functions are no longer available. Code should only rely on the public API.

Recommendation: This upgrade requires significant code refactoring. Developers must carefully review the official v1.x upgrade guide and test all axios integrations, paying close attention to request configurations, headers, and interceptors before merging.

Source: Upgrade guide

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

@snyk-io
Copy link
Copy Markdown
Author

snyk-io bot commented Apr 10, 2026

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
Code Security 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

Development

Successfully merging this pull request may close these issues.

0 participants