[auto-sec] Consolidate aspire-samples dependency security remediations#1782
[auto-sec] Consolidate aspire-samples dependency security remediations#1782IEvangelist wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR consolidates multiple dependency security remediations across the aspire-samples repo by updating pinned/locked dependency versions and introducing npm overrides to enforce patched minima in affected sample apps.
Changes:
- Add
overridesto multiple samplepackage.jsonfiles to force patched versions ofesbuildand@babel/core, plus additional overrides in the Angular sample. - Update multiple
package-lock.jsonfiles to reflect the remediated dependency graph. - Update Python
uv.lockto bumpstarletteto a patched version (transitive via FastAPI).
Reviewed changes
Copilot reviewed 9 out of 19 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| samples/vite-yarp-static/package.json | Adds overrides to pin esbuild to a patched version. |
| samples/vite-yarp-static/package-lock.json | Updates lockfile to reflect patched esbuild resolution. |
| samples/vite-react-fastapi/package.json | Adds overrides to pin esbuild to a patched version. |
| samples/vite-react-fastapi/package-lock.json | Updates lockfile to reflect patched esbuild resolution. |
| samples/rag-document-qa-svelte/api/uv.lock | Updates locked Python dependency graph (notably starlette). |
| samples/python-openai-agent/package.json | Adds overrides to pin esbuild to a patched version. |
| samples/python-openai-agent/package-lock.json | Updates lockfile to reflect patched esbuild resolution. |
| samples/python-fastapi-postgres/package.json | Adds overrides to pin esbuild to a patched version. |
| samples/python-fastapi-postgres/package-lock.json | Updates lockfile to reflect patched esbuild resolution. |
| samples/polyglot-task-queue/package.json | Adds overrides to pin esbuild to a patched version. |
| samples/polyglot-task-queue/package-lock.json | Updates lockfile to reflect patched esbuild resolution. |
| samples/node-express-redis/package.json | Adds overrides to pin esbuild to a patched version. |
| samples/node-express-redis/package-lock.json | Updates lockfile to reflect patched esbuild resolution. |
| samples/aspire-with-python/frontend/package.json | Adds overrides to pin @babel/core to a patched version. |
| samples/aspire-with-python/frontend/package-lock.json | Updates lockfile to reflect patched @babel/* resolution. |
| samples/aspire-with-javascript/AspireJavaScript.Vite/package.json | Adds overrides to pin @babel/core to a patched version. |
| samples/aspire-with-javascript/AspireJavaScript.Vite/package-lock.json | Updates lockfile to reflect patched @babel/* resolution. |
| samples/aspire-with-javascript/AspireJavaScript.Angular/package.json | Bumps @angular/core and adds multiple security-related overrides. |
| samples/aspire-with-javascript/AspireJavaScript.Angular/package-lock.json | Updates Angular lockfile to reflect remediations and dependency graph changes. |
Files not reviewed (9)
- samples/aspire-with-javascript/AspireJavaScript.Angular/package-lock.json: Generated file
- samples/aspire-with-javascript/AspireJavaScript.Vite/package-lock.json: Generated file
- samples/aspire-with-python/frontend/package-lock.json: Generated file
- samples/node-express-redis/package-lock.json: Generated file
- samples/polyglot-task-queue/package-lock.json: Generated file
- samples/python-fastapi-postgres/package-lock.json: Generated file
- samples/python-openai-agent/package-lock.json: Generated file
- samples/vite-react-fastapi/package-lock.json: Generated file
- samples/vite-yarp-static/package-lock.json: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Responding to the automated Copilot reviewer comments about registry drift (all 9 are the same concern): The lockfiles in this PR resolve packages from the Evidence: all 3 CI jobs (Build & Test Samples ubuntu, Build & Test Samples windows, license/cla) pass cleanly, confirming the feed is accessible and packages resolve correctly. If contributors outside the Microsoft network need to install dependencies locally, they should configure their npm registry to point at |
b0e90c8 to
470ea88
Compare
|
The build failures on both ubuntu and windows are pre-existing C# package vulnerabilities, not caused by this PR:
This PR's scope: npm (JavaScript/TypeScript) and Python (Starlette) security fixes. The C# package vulnerabilities exist on npm/Python changes are verified:
Next: A separate PR should consolidate the C# vulnerabilities (MessagePack, Microsoft.OpenApi, etc.). This PR should merge once the C# blocker is lifted or independently gated. |
9f32a94 to
07b09a7
Compare
… locks Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
07b09a7 to
6300905
Compare
Summary
Rebased this canonical low-risk dependency remediation branch onto latest
mainand resolved merge conflicts.Alerts addressed (cluster)
@hono/node-serverGHSA-frvp-7c67-39w9webpack-dev-serverGHSA-f5vj-f2hx-8m93, GHSA-m28w-2pqf-7qgj, GHSA-mx8g-39q3-5c79http-proxy-middlewareGHSA-64mm-vxmg-q3vj, GHSA-gcq2-9pq2-cxqmviteGHSA-v6wh-96g9-6wx3, GHSA-fx2h-pf6j-xcffwsGHSA-96hv-2xvq-fx4p@babel/coreGHSA-4x5r-pxfx-6jf8esbuildGHSA-g7r4-m6w7-qqqrstarletteGHSA-82w8-qh3p-5jfq, GHSA-jp82-jpqv-5vv3, GHSA-wqp7-x3pw-xc5r, GHSA-x746-7m8f-x49cbrace-expansionGHSA-3jxr-9vmj-r5cp (multi-sample lockfiles)Verification
main.Consolidation
microsoft/aspire-samples.