fix: address Dependabot security alerts#1534
Merged
Merged
Conversation
added 2 commits
April 17, 2026 19:51
- Update direct dependencies: axios ^1.15.0, vite ^6.4.2, lodash-es ^4.18.0 - Add npm overrides for transitive dependencies: lodash >=4.18.1, lodash-es >=4.18.1, dompurify >=3.4.0, fast-xml-parser >=5.5.7, follow-redirects >=1.16.0 - Pin python-multipart >=0.0.26 and cryptography >=46.0.7 in pyproject.toml - Fix TypeScript build error caused by vite 6.4.2 type definition change
added 4 commits
April 17, 2026 20:22
Node.js 18 reached EOL in April 2025. Update CI workflows to use Node.js 22 (current LTS) and regenerate package-lock.json accordingly. Also bump actions/checkout and actions/setup-node from v3 to v4.
CDK NodejsFunction bundler copies the root package-lock.json but generates its own package.json without overrides, causing npm ci to fail when overridden versions don't match the lock file entries. fast-xml-parser will be addressed when @aws-sdk updates its dependency.
All transitive vulnerabilities are resolved without overrides: - lodash/lodash-es: @aws-amplify/ui pins 4.18.1 directly - follow-redirects: axios 1.15.0 pulls 1.16.0 via ^1.15.6 - dompurify: mermaid pulls 3.4.0 via ^3.0.5 - fast-xml-parser: @aws-sdk/xml-builder pins 5.5.8 (above CVE fix)
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.
Summary
Address all open Dependabot security alerts and upgrade CI to Node.js 22 (current LTS).
Changes
1. Direct dependency updates
2. Transitive dependency resolution (no overrides needed)
All transitive vulnerabilities are resolved naturally through the direct dependency updates and lock file regeneration:
@aws-amplify/uipins 4.18.1 directly; npm dedupes for all consumers^1.15.6, npm resolves to 1.16.0^3.0.5, npm resolves to 3.4.0@aws-sdk/xml-builderpins 5.5.8 (above CVE fix 5.5.7, updated in SDK v3.1014.0)3. Python dependency pins
4. CI modernization
5. Build fix
as ArrayBuffercast inuseSpeechToSpeech/index.tsto fix TypeScript error caused by vite 6.4.2 type change (Int16Array.bufferreturnsArrayBufferLikeinstead ofArrayBuffer)Addressed CVEs
Testing
npm ci✅npm run web:build✅npx -w packages/cdk cdk synth✅