Skip to content

Update dependencies and CDK; resolve npm audit advisories - #102

Merged
pcholakov merged 1 commit into
mainfrom
update-dependencies
Jun 18, 2026
Merged

Update dependencies and CDK; resolve npm audit advisories#102
pcholakov merged 1 commit into
mainfrom
update-dependencies

Conversation

@pcholakov

Copy link
Copy Markdown
Collaborator

General dependency tidy-up: update CDK and the dev toolchain, and resolve the actionable npm audit advisories.

Updates

  • aws-cdk-lib 2.236.0 -> 2.260.0, aws-cdk CLI -> 2.1128.0, constructs -> 10.6.0
  • @aws-sdk/client-secrets-manager -> 3.1072.0, @restatedev/restate-sdk -> 1.14.5
  • Dev toolchain to latest in-range: @types/*, prettier, ts-jest, tsx, typescript, jest-cdk-snapshot
  • package.json floors bumped to match; no major-version bumps

Security (npm audit)

Before: 30 (1 critical, 4 high, 24 moderate, 1 low) -> After: 21 (0 critical, 0 high, 20 moderate, 1 low)

  • Critical fast-xml-parser (DoS) cleared via the AWS SDK update
  • All 4 high cleared: aws-cdk-lib NodejsFunction command injection, fast-uri, minimatch, picomatch (ReDoS)

The remaining 20 moderate + 1 low are dev-only and not installed by consumers of the published library (devDependencies):

  • 20 moderate root in js-yaml@3, pinned by jest@29's coverage tooling (@istanbuljs/load-nyc-config) and by jest-cdk-snapshot. A jest 29->30 bump does not reduce the count (the js-yaml@3 pins persist), and a blanket js-yaml@4 override breaks jest-cdk-snapshot (it uses the removed v3 safeLoad API). These need upstream fixes.
  • 1 low is esbuild's Windows dev-server file-read advisory; the dev server is not used here.

Tests

  • npm run build, npm run lint, npm test all pass
  • Snapshots regenerated: the test fixture uses Runtime.NODEJS_LATEST, which resolves to nodejs24.x under CDK 2.260 (was nodejs22.x). Construct-owned handlers remain pinned at NODEJS_22_X - no consumer-facing change.

Note

Overlaps with #101 (Release 1.7.0) in package.json / package-lock.json. Whichever merges first, the other should be rebased.

- aws-cdk-lib 2.236 -> 2.260, aws-cdk CLI -> 2.1128, constructs -> 10.6
- @aws-sdk/client-secrets-manager -> 3.1072, @restatedev/restate-sdk -> 1.14.5,
  and dev toolchain (types, prettier, ts-jest, tsx, typescript, jest-cdk-snapshot)
  to latest in-range
- Clears the critical (fast-xml-parser DoS) and all high advisories (aws-cdk-lib
  NodejsFunction command injection, fast-uri, minimatch, picomatch)
- Regenerate snapshots: NODEJS_LATEST is nodejs24.x under CDK 2.260 (test fixture only)

Remaining 20 moderate + 1 low are dev-only (jest 29 coverage tooling -> js-yaml@3,
jest-cdk-snapshot, esbuild dev-server) and are not installed by consumers of the
published library; clearing them needs upstream fixes, not a jest 30 migration
(which yields no audit reduction).
@pcholakov
pcholakov force-pushed the update-dependencies branch from 80bfc9a to 9d007f0 Compare June 18, 2026 19:49
@pcholakov
pcholakov merged commit d4098b8 into main Jun 18, 2026
2 checks passed
@pcholakov
pcholakov deleted the update-dependencies branch June 18, 2026 19:51
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant