Skip to content

fix(deps): clear 24 Dependabot CVE alerts (aws/cdk, docs, examples) - #369

Closed
kylehounslow wants to merge 5 commits into
opensearch-project:mainfrom
kylehounslow:security/remaining-cves-357-followup
Closed

fix(deps): clear 24 Dependabot CVE alerts (aws/cdk, docs, examples)#369
kylehounslow wants to merge 5 commits into
opensearch-project:mainfrom
kylehounslow:security/remaining-cves-357-followup

Conversation

@kylehounslow

Copy link
Copy Markdown
Collaborator

What

Clears 24 of the 29 open Dependabot alerts remaining after the #357 wave (PRs #358-361). Bumps or overrides the affected dependencies across aws/cdk, docs, docs/starlight-docs, and the three examples/* uv manifests.

This branch was rebased onto current main after #367 (astro 6.4.8 -> 7.1.1 in /docs) merged. That upstream bump cleared the docs astro and docs esbuild alerts on its own, so the count moved from 25/33 at branch time to 24/29 now. The docs change here is reduced to the sharp and esbuild overrides layered on top of astro 7.1.1; astro in /docs is left at main's 7.1.1.

Fix

Node packages:

Python examples (uv manifests):

Validation

  • aws/cdk: npm run build (tsc) passes.
  • docs / docs/starlight-docs: lockfiles resolve against manifests; docs lock is coherent with astro 7.1.1 (npm install --package-lock-only reports up to date).
  • All three uv locks pass uv lock --check.

Resolved versions on branch: fast-uri gone from the aws/cdk tree; docs astro 7.1.1 + sharp 0.35.3 + esbuild 0.28.1; starlight-docs astro 6.4.8, vite 7.3.6, postcss 8.5.24, svgo 4.0.2, sharp 0.35.3, esbuild 0.28.1; idna 3.18 and starlette 1.3.1 in all three example locks.

Not fixed here (5 alerts)

Clears GHSA-4c8g-83qw-93j6/GHSA-v2hh-gcrm-f6hx (fast-uri) and
GHSA-g7r4-m6w7-qqqr (esbuild). fast-uri drops out of the tree entirely
at aws-cdk-lib 2.262.1. brace-expansion 5.0.6 (GHSA-mh99-v99m-4gvg)
stays bundled inside aws-cdk-lib and cannot be overridden from this
package; it clears when aws-cdk-lib re-bundles brace-expansion >=5.0.8.

Signed-off-by: Kyle Hounslow <kylehounslow@gmail.com>
Clears GHSA-f88m-g3jw-g9cj (sharp) and GHSA-g7r4-m6w7-qqqr (esbuild).
Both are transitive under astro/vite, which pin ranges below the
patched versions, so the fix is a top-level override. astro build
verified: image processing works on sharp 0.35 and all 557 tests pass.
astro-7-only CVEs (GHSA-f48w-9m4c-m7f5, GHSA-7pw4-f3q4-r2p2) are left
for the tracked astro-7 major-upgrade evaluation.

Signed-off-by: Kyle Hounslow <kylehounslow@gmail.com>
….24, esbuild 0.28.1

Clears GHSA-2pvr-wf23-7pc7/GHSA-jrpj-wcv7-9fh9 (astro <6.4.6),
GHSA-f88m-g3jw-g9cj (sharp), GHSA-r28c-9q8g-f849 (postcss), and
GHSA-g7r4-m6w7-qqqr (esbuild). astro is a direct dep so it moves within
^6; sharp bumped directly with a $sharp override so astro's nested copy
resolves to the same 0.35.3; postcss and esbuild are transitive
overrides. Full site build verified: 135 pages, mermaid renders, all
internal links valid. astro-7-only CVEs left for the astro-7 evaluation.

Signed-off-by: Kyle Hounslow <kylehounslow@gmail.com>
…examples

Clears GHSA-65pc-fj4g-8rjx (idna, all three uv manifests) and the
starlette advisories GHSA-82w8-qh3p-5jfq / GHSA-wqp7-x3pw-xc5r /
GHSA-x746-7m8f-x49c / GHSA-86qp-5c8j-p5mr (genai-sdk, weather-agent).

weather-agent requires-python was >=3.9 while the genai SDK requires
>=3.10, which made any re-lock unsatisfiable; tightened to >=3.10 to
match the SDK floor and unblock the resolve. code-assistant uv.lock had
a malformed typing-extensions entry (missing source field) that failed
to parse on any lock command; regenerated from scratch. All three locks
pass uv lock --check.

Signed-off-by: Kyle Hounslow <kylehounslow@gmail.com>
Clears GHSA-fx2h-pf6j-xcff / GHSA-v6wh-96g9-6wx3 (vite, range
>=7.0.0,<=7.3.4) and GHSA-2p49-hgcm-8545 (svgo, range >=4.0.0,<4.0.2).
Both are transitive under astro; installed 7.3.3 / 4.0.1 fell inside
the vulnerable ranges despite being on the current major, so the fix is
a top-level override. Full site build reverified: 135 pages, links valid.

Signed-off-by: Kyle Hounslow <kylehounslow@gmail.com>
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.62%. Comparing base (53be4f5) to head (9094c87).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #369   +/-   ##
=======================================
  Coverage   55.62%   55.62%           
=======================================
  Files           4        4           
  Lines         169      169           
  Branches       47       48    +1     
=======================================
  Hits           94       94           
  Misses         74       74           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kylehounslow

Copy link
Copy Markdown
Collaborator Author

duplicate of #370

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