Skip to content

chore(deps): clear 6 Dependabot alerts (aws/cdk brace-expansion, examples aiohttp/cryptography) - #402

Open
kylehounslow wants to merge 2 commits into
opensearch-project:mainfrom
kylehounslow:security-sweep-cdk-brace-expansion
Open

chore(deps): clear 6 Dependabot alerts (aws/cdk brace-expansion, examples aiohttp/cryptography)#402
kylehounslow wants to merge 2 commits into
opensearch-project:mainfrom
kylehounslow:security-sweep-cdk-brace-expansion

Conversation

@kylehounslow

Copy link
Copy Markdown
Collaborator

What

Clears 6 of 10 open Dependabot alerts across the AWS install path and the example apps.

Alert Package Manifest Advisory Fix
#333 brace-expansion aws/cdk GHSA-mh99-v99m-4gvg aws-cdk-lib 2.262.1 -> 2.263.0 (bundles brace-expansion 5.0.8)
#335 aiohttp examples/agent-evals/genai-sdk GHSA-mq44-7p77-q5h7 constrain aiohttp>=3.14.3
#336 aiohttp examples/agent-evals/genai-sdk GHSA-mfx4-hv73-q22v constrain aiohttp>=3.14.3
#337 aiohttp examples/agent-evals/genai-sdk GHSA-cq5v-8q36-5273 constrain aiohttp>=3.14.3
#338 cryptography examples/agent-evals/genai-sdk GHSA-g6cj-pr64-35w5 constrain cryptography>=50.0.0
#339 cryptography examples/strands/code-assistant GHSA-g6cj-pr64-35w5 constrain cryptography>=50.0.0

Fix

aws/cdk: bump aws-cdk-lib floor to ^2.263.0. brace-expansion is a bundledDependency of aws-cdk-lib, so an npm override cannot rewrite it; the only fix is a cdk-lib release that bundles a patched version. 2.263.0 bundles brace-expansion 5.0.8 (was 5.0.7). Targeted bump against the existing lockfile, so the fast-xml-parser override and the rest of the tree are untouched.

examples: add aiohttp>=3.14.3 and cryptography>=50.0.0 to [tool.uv].constraint-dependencies, matching the existing idna/starlette pinning pattern. uv lock re-resolves both transitives to the patched versions.

Validation

  • aws/cdk: npm run build (tsc) and npm run synth pass; aws-cdk CLI floats to 2.1135.0; lockfile shows bundled brace-expansion at 5.0.8; npm audit reports the single remaining high is chore(deps): bump dompurify from 3.4.5 to 3.4.12 in /docs/starlight-docs #334.
  • genai-sdk: uv lock --check and uv sync --frozen pass; aiohttp resolves to 3.14.3, cryptography to 50.0.0.
  • code-assistant: uv lock --check passes; cryptography resolves to 50.0.0.

Not fixed in this PR

Bumps aws-cdk-lib from 2.262.1 to 2.263.0. 2.263.0 bundles
brace-expansion 5.0.8 (was 5.0.7), clearing CVE-2026-14257
(GHSA-mh99-v99m-4gvg, alert opensearch-project#333).

brace-expansion is a bundledDependency of aws-cdk-lib, so an npm
override cannot rewrite it; the only fix is a cdk-lib release that
bundles a patched version. GHSA-rgw5-rvv9-x895 (alert opensearch-project#334, patched
in brace-expansion 5.0.9) is not yet cleared: no published aws-cdk-lib
release bundles 5.0.9.

Validated: npm run build (tsc) and npm run synth pass; aws-cdk CLI
floats to 2.1135.0. npm audit shows the single remaining high is opensearch-project#334.

Signed-off-by: Kyle Hounslow <kylhouns@amazon.com>
genai-sdk: constrain aiohttp>=3.14.3 (clears GHSA-mq44-7p77-q5h7 opensearch-project#335,
GHSA-mfx4-hv73-q22v opensearch-project#336, GHSA-cq5v-8q36-5273 opensearch-project#337) and
cryptography>=50.0.0 (clears GHSA-g6cj-pr64-35w5 opensearch-project#338).
code-assistant: constrain cryptography>=50.0.0 (clears opensearch-project#339).

Constraints added to [tool.uv].constraint-dependencies, matching the
existing idna/starlette pinning pattern. uv lock re-resolves both to
the patched versions; uv lock --check and uv sync --frozen pass.

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.

1 participant