Skip to content

fix(aws): clear install-path dependency CVEs in aws/cdk and aws/cli-installer - #359

Open
kylehounslow wants to merge 1 commit into
opensearch-project:mainfrom
kylehounslow:fix/kyl57-aws-install-cves
Open

fix(aws): clear install-path dependency CVEs in aws/cdk and aws/cli-installer#359
kylehounslow wants to merge 1 commit into
opensearch-project:mainfrom
kylehounslow:fix/kyl57-aws-install-cves

Conversation

@kylehounslow

Copy link
Copy Markdown
Collaborator

What

Clears the open Mend security alerts on the two user-facing AWS install manifests (aws/cdk, aws/cli-installer). These manifests are not watched by Dependabot, so the alerts sat open. This is the code users run to install the stack, so it is the highest-blast-radius path in the triage tracked by #357.

Consolidated into one PR because both manifests share the same fast-xml-parser root and the changes verify together. No major-version bumps.

Changes

aws/cdk:

  • aws-cdk-lib ^2.180.0 -> ^2.260.0. Clears CVE-2026-13760 (direct) and the fast-uri advisories CVE-2026-6321/6322 (patched in cdk 2.252.0).
  • aws-cdk CLI ^2.180.0 -> ^2.1132.0. 2.260.0 emits cloud-assembly schema v54; the old CLI floor only reads v53, so cdk synth fails on a schema mismatch without this. Still a 2.x bump.
  • overrides.fast-xml-parser: ^5.7.0 (resolves 5.10.1). Clears CVE-2026-41650 on the @aws-sdk chain.

aws/cli-installer:

  • @aws-sdk/credential-provider-node -> 3.972.30 (lockfile only). The newer @aws-sdk/xml-builder in that tree drops fast-xml-parser entirely, which clears CVE-2026-41650 at the source. No fast-xml-parser override is added here because a fresh re-lock resolves none, so an override would match nothing.

Supersedes bot PRs #335, #339, and #289, which each carry a subset of this fix.

Residual cdk advisories (not fixable via npm overrides)

The brace-expansion and fast-uri advisories that remain on the cdk tree are bundledDependencies shipped inside the aws-cdk-lib tarball (via minimatch/ajv). npm overrides cannot rewrite bundled deps, so no override clears them. Even 2.262.1 bundles the flagged versions. Mend's own table on #293 marks these Fixed in: N/A for the same reason. They clear when aws-cdk-lib bundles patched versions upstream.

Validation

aws/cdk: npm install, npm run build, npm run synth all pass. synth template shape is identical to main (ObsInfra 19 resources, ObservabilityStack 29; zero added, removed, or retyped resources). The only drift is CDK-internal: provider-framework helper Lambdas move nodejs22.x -> nodejs24.x and the CDKMetadata blob changes. All user resources are byte-identical after asset-hash normalization.

aws/cli-installer: npm install, npm test (134/134 pass), npm run e2e:list green, npm audit reports 0 vulnerabilities.

e2e gap: npm run e2e provisions billable live AWS infra (OpenSearch domains, EC2, OSIS) and was not run unattended. This change is a lockfile adoption on the installer plus a non-breaking cdk minor, covered by the unit suite and a clean audit. Requesting QA on the managed public e2e path before merge.

Closes #293 #214 #215
Refs #357

…nstaller

aws/cdk:
- aws-cdk-lib ^2.180.0 -> ^2.260.0 (clears CVE-2026-13760; fast-uri CVE-2026-6321/6322 fixed in cdk 2.252.0)
- aws-cdk CLI ^2.180.0 -> ^2.1132.0 (cloud-assembly schema v54 compat; synth fails otherwise)
- overrides.fast-xml-parser ^5.7.0 (clears CVE-2026-41650 on the @aws-sdk chain)

aws/cli-installer:
- @aws-sdk/credential-provider-node -> 3.972.30 (lock); newer @aws-sdk/xml-builder drops fast-xml-parser, clearing CVE-2026-41650

Closes opensearch-project#293 opensearch-project#214 opensearch-project#215
Refs opensearch-project#357

Signed-off-by: Kyle Hounslow <kylhouns@amazon.com>
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.

aws-cdk-lib-2.251.0.tgz: 8 vulnerabilities (highest severity is: 7.5)

1 participant