Skip to content

[Snyk] Security upgrade axios from 1.20.0 to 1.21.0 - #144

Open
paynejd wants to merge 1 commit into
mainfrom
snyk-fix-40375bc0db62c4ebd116abee4b07bc38
Open

paynejd wants to merge 1 commit into
mainfrom
snyk-fix-40375bc0db62c4ebd116abee4b07bc38

Conversation

@paynejd

@paynejd paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member

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
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
high severity Prototype Pollution
SNYK-JS-AXIOS-23188833

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:

🦉 Prototype Pollution

@paynejd

paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

Merge Risk: High

This minor version upgrade contains a specific, documented breaking change related to the handling of default headers.

Breaking Change: Header Defaults

Starting with v1.21.0, only plain objects, null-prototype maps, and compatible AxiosHeaders instances are recognized as default header configurations. Previously, other object types (like custom class instances) might have been merged as defaults. Now, they will be treated as literal header values, which could lead to unexpected behavior.

Action Required:

If your application uses custom class instances to define default headers (e.g., in axios.defaults.headers.common), you must convert them to plain JavaScript objects to maintain the previous behavior.

This release also introduces new features, including response duration timing and opt-in UTF-8 support for Basic authentication, alongside various bug fixes.

Source: GitHub Release Notes v1.21.0

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

This branch has not been deployed

No deployments
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.

2 participants