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 - #291

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

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

Conversation

@aikido-autofix

Copy link
Copy Markdown

Overview

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

Changes

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.

Fixes SSRF/proxy bypass, prototype-pollution header injection, credential leaks on cross-origin redirects, and XSRF token exposure in axios.

Security Impact — CVE vulnerabilities fixed by this PR:

✅ 14 CVEs resolved by this upgrade

This PR will resolve the following CVEs:

Issue Severity           Description
CVE-2025-62718
HIGH
[axios] Requests to loopback hosts written as "localhost." (trailing dot) or "[::1]" bypass NO_PROXY matching and are routed through the configured proxy, enabling proxy bypass and SSRF that can reach sensitive loopback or internal services.
CVE-2026-40175
HIGH
[axios] Prototype pollution in a third-party dependency can be chained with Axios to inject unsanitized header values into outbound HTTP requests. This gadget-style attack enables header injection, potentially leading to request manipulation.
AIKIDO-2026-291630
HIGH
[axios] The Node.js HTTP adapter follows redirects through follow-redirects, which strips standard credential headers such as Authorization on cross-origin hops but leaves caller-defined secret headers like X-API-Key untouched. A server that responds with a cross-origin redirect can therefo...
CVE-2026-44495
MEDIUM
[axios] Axios request config processing can inherit polluted Object.prototype.transformResponse values as configuration or validator options, enabling exploitation if a separate prototype-pollution flaw exists in the same process. Axios does not create the pollution itself, but it acts as a gadget that can amplify impact.
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] The mergeConfig function crashes with a TypeError when given a configuration object containing __proto__ as an own property, such as one created via JSON.parse(). An attacker can exploit this to cause a complete denial of service.
CVE-2026-42039
MEDIUM
[axios] Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, toFormData recursively walks nested objects with no depth limit, so a deeply nested value passed as request data crashes the Node.js process with a RangeError. This vulnerability is fixed in 1.15...
CVE-2026-42033
MEDIUM
[axios] Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, when Object.prototype has been polluted by any co-dependency with keys that axios reads without a hasOwnProperty guard, an attacker can (a) silently intercept and modify every JSON response befor...
AIKIDO-2026-10509
MEDIUM
[axios] Affected versions of this package are vulnerable to prototype pollution–based header injection due to unsafe FormData detection and header merging logic. The affected implementation may treat attacker-controlled plain objects as valid FormData instances and invoke inherited getHeaders m...
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-2026-42041
MEDIUM
[axios] Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the Axios library is vulnerable to a Prototype Pollution "Gadget" attack that allows any Object.prototype pollution to silently suppress all HTTP error responses (401, 403, 500, etc.), causing th...
CVE-2025-27152
MEDIUM
[axios] Passing absolute URLs instead of relative ones causes requests to ignore the configured baseURL and go to the attacker-specified host. This enables SSRF and credential leakage on both server and client sides.
AIKIDO-2023-10001
LOW
[axios] A prototype pollution flaw in the formDataToJSON function and a Regular Expression Denial of Service (ReDoS) vulnerability in the combineURLs function were quietly patched. The prototype pollution poses a significant risk, while the ReDoS can cause denial of service.

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 fixes security vulnerabilities in the transitive dependency axios used within shared-actions/send-deployment-event. The axios package was being pulled in at 0.27.2 (and subsequently pinned to 1.18.0 in a prior round) — both below the 1.20.0 fix floor required to address all flagged advisories. The fix adds a resolutions entry to shared-actions/send-deployment-event/package.json and refreshes the corresponding yarn.lock to resolve axios at 1.20.0.

axios

axios is a transitive-only dependency, required by the direct dependency analytics-node@6.2.0 (exact pin, latest available version) via the range ^0.27.2. That range cannot resolve to 1.20.0, and no newer release of analytics-node exists that upgrades its axios dependency — making a parent-bump path impossible. A resolutions override ("axios": "1.20.0") was added to shared-actions/send-deployment-event/package.json as the only viable mechanism to force the lockfile to resolve axios at the required patched version. The resolved version in yarn.lock moved from 0.27.2 → 1.20.0, satisfying the ≥ 1.20.0 fix floor for all flagged advisories.

Version changes

Package From To Why updated
axios 0.27.2 1.20.0 Transitive CVE fix via resolutions override (parent analytics-node@6.2.0 range ^0.27.2 cannot reach patched version)

@pr-auditor

pr-auditor Bot commented Nov 27, 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

aikido-autofix Bot commented Dec 6, 2026

Copy link
Copy Markdown
Author

Aikido's automated cron job opened a newer AutoFix. It fixes the same vulnerabilities and more: fix(security): fix 20 security issues in axios, undici

@aikido-autofix aikido-autofix Bot closed this Dec 6, 2026
@aikido-autofix
aikido-autofix Bot deleted the fix/aikido-security-update-packages-200389647-ks2o branch December 6, 2026 03:56
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