[Aikido] Fix security issue in axios via minor version upgrade from 1.16.1 to 1.18.0#1715
Merged
AdamJHall merged 2 commits intoJun 23, 2026
Merged
Conversation
Contributor
|
✅ Changeset detected - Thanks for adding release notes! |
AdamJHall
approved these changes
Jun 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade axios to fix credential leakage on cross-origin redirects and malformed URL bypass vulnerabilities.
✅ Code not affected by breaking changes.
✅ No breaking changes from the axios upgrade affect this codebase:
Malformed URLs: The codebase does not construct malformed
http:orhttps:URLs that omit//. All URL constructions follow proper format (e.g.,`https://${FRONTEND_HOST}...`), and URLs from external sources (environment variables, SQS events) are expected to be well-formed.validateStatus: undefined: All three instances wherevalidateStatusis used in the codebase explicitly provide a function value, notundefined. The breaking change only affects code that setsvalidateStatus: undefined, which does not occur in this codebase.All breaking changes by upgrading axios from version 1.16.1 to 1.18.0 (CHANGELOG)
http:andhttps:URLs that omit//are now rejected withERR_INVALID_URL, whereas they may have been accepted previously.validateStatus: undefinedbehavior changed to require opt-in viatransitional.validateStatusUndefinedResolvesto be treated like the option was omitted; without the opt-in, the behavior differs from previous versions.✅ 2 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
X-API-Keyand AWS tokens to unintended hosts, allowing attackers to steal sensitive authentication data. This information disclosure vulnerability affects shared environments where secret headers are set by default.//(e.g.,https:internal.example) were silently normalized instead of rejected, allowing attackers to bypass URL allowlists or WAF checks and reach unintended hosts. The fix now throws an error for invalid scheme URLs before normalization.🤖 Remediation details
Fix axios vulnerability in header-change-detection and prerender-proxy workspace packages
Short summary
This PR remediates two security vulnerabilities in the
axiosnpm package (versions[0.19.1, 1.17.0]are affected). The vulnerable dependency appears as a direct dependency declared in two workspace member manifests —packages/constructs/header-change-detection/package.jsonandpackages/constructs/prerender-proxy/package.json— and the resolved version inyarn.lockwas updated accordingly.axios
Both workspace packages declared
"axios": "^1.16.0", which resolved to1.16.1in the lockfile — a version within the vulnerable range. The declared spec in each manifest was bumped to"^1.18.0"(the minimum patched version), andyarn.lockwas refreshed viayarn install --mode=update-lockfile, causing Yarn Berry to resolve the entry to1.18.0. Noresolutionsoverride was needed because the range change in the owning manifests was sufficient to pull in the patched release.Version changes
axios^1.16.0(resolved1.16.1)^1.18.0(resolved1.18.0)