Skip to content

fix(security): fix security issue in axios via major version upgrade from 0.27.2 to 1.20.0 in shared-actions - #280

Closed
aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/aikido-security-update-packages-168445400-nxu8
Closed

aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/aikido-security-update-packages-168445400-nxu8

Conversation

@aikido-autofix

@aikido-autofix aikido-autofix Bot commented Nov 4, 2026

Copy link
Copy Markdown

Overview

Jira ticket: https://typeform.atlassian.net/browse/<TICKET_ID>

Upgrade axios to fix critical security vulnerabilities including proxy bypass/SSRF via hostname normalization flaws, credential leakage on cross-origin redirects, prototype pollution header injection, and ReDoS via unescaped XSRF cookie regex.

Changes

Security Impact — CVE vulnerabilities fixed by this PR

✅ 11 CVEs resolved by this upgrade

This PR will resolve the following CVEs:

Issue Severity           Description
CVE-2025-62718
HIGH
[axios] Improper hostname normalization in NO_PROXY rule checking allows requests to loopback addresses (localhost., [::1]) to bypass proxy protections, enabling proxy bypass and potential SSRF attacks against internal services. This vulnerability permits attackers to reach sensitive services despite configured NO_PROXY protections.
CVE-2026-44492
HIGH
[axios] Axios is a promise based HTTP client for the browser and Node.js. Prior to 0.32.0 and 1.16.0, Axios does not normalise IPv4-mapped IPv6 addresses. When NO_PROXY lists an IPv4 address such as 127.0.0.1 or 169.254.169.254, a request URL using the IPv4-mapped IPv6 form (::ffff:7f00:1, ::ffff...
CVE-2026-40175
HIGH
[axios] Axios is a promise based HTTP client for the browser and Node.js. Versions prior to 1.15.0 and 0.3.1 are vulnerable to a specific gadget-style attack chain in which prototype pollution in a third-party dependency may be leveraged to inject unsanitized header values into outbound requests....
AIKIDO-2026-291630
HIGH
[axios] The HTTP adapter fails to strip custom credential headers (like X-API-Key or AWS tokens) during cross-origin redirects, allowing sensitive secrets to leak to unintended hosts. This can expose live credentials in shared environments where such headers are set by default.
CVE-2026-44496
HIGH
[axios] Axios is a promise based HTTP client for the browser and Node.js. Axios versions before 0.32.0 on the 0.x line and before 1.16.0 on the 1.x line build a regular expression from the configured XSRF cookie name without escaping regex metacharacters. In standard browser environments, an atta...
CVE-2023-45857
MEDIUM
[axios] An issue discovered in Axios 0.8.1 through 1.5.1 inadvertently reveals the confidential XSRF-TOKEN stored in cookies by including it in the HTTP header X-XSRF-TOKEN for every request made to any host allowing attackers to view sensitive information.
CVE-2026-25639
MEDIUM
[axios] Axios is a promise based HTTP client for the browser and Node.js. Prior to versions 0.30.3 and 1.13.5, the mergeConfig function in axios crashes with a TypeError when processing configuration objects containing proto as an own property. An attacker can trigger this by providing a mali...
AIKIDO-2025-10185
MEDIUM
[axios] Affected versions of this package are vulnerable to server-side request forgery (SSRF) because allowAbsoluteUrls is not set to false by default when processing URLs in buildFullPath(). This unsafe default may lead to unintended URL acceptance, allowing attackers to bypass expected r...
AIKIDO-2026-38469
MEDIUM
[axios] Before adapter normalization, axios accepted malformed http: and https: URLs that omitted //, such as https:internal.example, which could evade naive allowlist or WAF checks and reach unintended hosts. The library silently normalized these inputs instead of rejecting them. The f...
CVE-2025-27152
MEDIUM
[axios] Axios sends requests to absolute URLs even when baseURL is configured, bypassing intended routing and potentially causing Server-Side Request Forgery (SSRF) and credential leakage in both server and client environments.
AIKIDO-2023-10001
LOW
[axios] Prototype pollution vulnerability in the formDataToJSON function allows attackers to manipulate object properties. Additionally, a ReDoS vulnerability in combineURLs can cause denial of service through malicious input.

Breaking Changes & Upgrade Impact

⚠️ Breaking changes analysis not available for: axios

Fix Details / Technical Implementation

🤖 Remediation details

Fix transitive axios vulnerability via resolutions override

Short summary

This PR remediates multiple high- and medium-severity vulnerabilities in the transitive dependency axios, which is pulled into shared-actions/send-deployment-event by the direct dependency analytics-node. Because no published version of analytics-node declares an axios range that admits the patched 1.x releases, a resolutions entry was added to shared-actions/send-deployment-event/package.json to force the resolved version to 1.20.0, and yarn.lock was refreshed accordingly.

axios

axios is a transitive dependency introduced by analytics-node@6.2.0, which pins it at ^0.27.2. The installed version 0.27.2 is affected by a large set of vulnerabilities requiring a fix at axios@1.20.0 (the minimum version that clears all reported advisories, including CVE-2026-101898 through CVE-2026-101909 which require 1.20.0, and the original advisory set which required 1.18.0). Since analytics-node@6.2.0 is the only published release of that package and it still declares axios@^0.27.2 (incompatible with 1.x), no parent bump path exists. A resolutions field was added to package.json pinning axios to 1.20.0 as a last resort, and yarn install was run to refresh yarn.lock so the lockfile resolves axios to 1.20.0.

Version changes

Package From To Why updated
axios 0.27.2 1.20.0 Direct CVE fix via resolutions override (transitive of analytics-node; no parent bump path available)

Testing

Docs

  • Yes! ✋ I have updated the documentation.

For contributions to the Typeform/.github repo

Note: Please do not use this repository for new internal shared workflows and actions. Use https://github.com/Typeform/.github-private instead!

Please check that your contribution applies to one of these cases below. If this is not the case, please contribute to https://github.com/Typeform/.github-private instead.

  • This PR only changes an existing workflow.
  • This PR adds a new workflow that is needed in a public Typeform repository.

@pr-auditor

pr-auditor Bot commented Nov 4, 2026

Copy link
Copy Markdown

✅ Security Analysis Results

No security issues found. 2 files reviewed.


@pr-auditor rescan to re-run · Powered by Claude Sonnet 5.5 · Docs · #security-engineering-team

@aikido-autofix

Copy link
Copy Markdown
Author

Aikido's automated cron job opened a newer AutoFix. It fixes the same vulnerabilities and more: fix(security): fix security issue in axios via major version upgrade from 0.27.2 to 1.20.0 in shared-actions

@aikido-autofix aikido-autofix Bot closed this Nov 27, 2026
@aikido-autofix
aikido-autofix Bot deleted the fix/aikido-security-update-packages-168445400-nxu8 branch November 27, 2026 03:14
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