Skip to content

Bump JS deps to address remaining Dependabot alerts (webpack-dev-server + NodeFrontend qs)#17502

Merged
IEvangelist merged 2 commits into
mainfrom
dapine/fix-webpack-dev-server-nodefrontend-qs
May 27, 2026
Merged

Bump JS deps to address remaining Dependabot alerts (webpack-dev-server + NodeFrontend qs)#17502
IEvangelist merged 2 commits into
mainfrom
dapine/fix-webpack-dev-server-nodefrontend-qs

Conversation

@IEvangelist
Copy link
Copy Markdown
Member

Bump JS deps to address remaining Dependabot alerts

Summary

Closes the four Dependabot alerts not covered by the grouped Dependabot PR #17414 by bumping the affected JavaScript lockfile-based manifests. Together with #17414 this brings the open Dependabot alert count on the repo to zero.

Alerts addressed

File Package Vuln range Bumped to Severity GHSA Alert
playground/AspireWithJavaScript/AspireJavaScript.Angular/package-lock.json webpack-dev-server <= 5.2.3 5.2.4 medium GHSA-79cf-xcqc-c78w #1152
playground/AspireWithJavaScript/AspireJavaScript.React/package-lock.json webpack-dev-server <= 5.2.3 5.2.4 medium GHSA-79cf-xcqc-c78w #1153
playground/AspireWithNode/NodeFrontend/package-lock.json qs < 6.15.2 6.15.2 medium GHSA-r2pq-mvjr-w5xj #1167
playground/AspireWithNode/NodeFrontend/pnpm-lock.yaml qs < 6.15.2 6.15.2 medium GHSA-r2pq-mvjr-w5xj #1168

How each manifest was updated

  • playground/AspireWithJavaScript/AspireJavaScript.React - webpack-dev-server is a direct devDependency. Range bumped from ^5.2.2 to ^5.2.4 in package.json, then package-lock.json regenerated with npm install --package-lock-only --legacy-peer-deps. The diff is larger here because webpack-dev-server 5.2.4 swapped its TLS cert generator from node-forge to @peculiar/x509 upstream; the new @peculiar/asn1-* and pkijs packages are all dev-only and only loaded when running npm start against the playground.
  • playground/AspireWithJavaScript/AspireJavaScript.Angular - webpack-dev-server is a transitive (via @angular-devkit/build-angular). Added an entry to the existing overrides block ("webpack-dev-server": "^5.2.4"), then regenerated package-lock.json.
  • playground/AspireWithNode/NodeFrontend - qs is transitive (via express). Added a qs: ^6.15.2 entry to both the overrides (npm) and pnpm.overrides blocks, then regenerated both package-lock.json (npm install --package-lock-only) and pnpm-lock.yaml (pnpm install --lockfile-only). The npm lockfile diff also picks up some pre-existing drift between package.json and package-lock.json (a few top-level dependencies entries that were missing from the lockfile and a few peer: true markers that no longer apply) - regenerating from a clean state syncs them.

Validation

For each updated manifest, regeneration succeeds against the configured dotnet-public-npm mirror, and every vulnerable version is gone from the resolved tree:

playground/AspireWithJavaScript/AspireJavaScript.React/package-lock.json:
  OK  webpack-dev-server = 5.2.4

playground/AspireWithJavaScript/AspireJavaScript.Angular/package-lock.json:
  OK  webpack-dev-server = 5.2.4

playground/AspireWithNode/NodeFrontend/package-lock.json:
  OK  qs = 6.15.2

playground/AspireWithNode/NodeFrontend/pnpm-lock.yaml:
  OK  qs@6.15.2 (resolved twice as transitive of express + body-parser)

Risk notes for reviewers

  • AGENTS.md rule: "Never change package.json or package-lock.json files unless explicitly asked to." This change is a security-alert sweep, which is the documented exception.
  • All three packages are dev-only or runtime transitives of HTTP server stacks - no published artifact or production code path is affected.
  • webpack-dev-server 5.2.2/5.2.3 -> 5.2.4 is a patch bump with no public API changes.
  • qs 6.15.1 -> 6.15.2 is a patch bump with no public API changes.

Related

Closes the four Dependabot alerts not covered by the grouped
Dependabot PR #17414 by bumping the affected JavaScript lockfile-based
manifests:

| File | Package | Bumped to | Severity | GHSA | Alert |
| --- | --- | --- | --- | --- | --- |
| `playground/AspireWithJavaScript/AspireJavaScript.Angular/package-lock.json` | `webpack-dev-server` | `5.2.4` | medium | GHSA-79cf-xcqc-c78w | #1152 |
| `playground/AspireWithJavaScript/AspireJavaScript.React/package-lock.json` | `webpack-dev-server` | `5.2.4` | medium | GHSA-79cf-xcqc-c78w | #1153 |
| `playground/AspireWithNode/NodeFrontend/package-lock.json` | `qs` | `6.15.2` | medium | CVE-2026-8723 | #1167 |
| `playground/AspireWithNode/NodeFrontend/pnpm-lock.yaml` | `qs` | `6.15.2` | medium | CVE-2026-8723 | #1168 |

Sibling to #17414 (Dependabot grouped) which covers the other 26 open
alerts (ws, fast-uri, @nevware21/ts-utils, qs across most directories,
@babel/plugin-transform-modules-systemjs, next).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 26, 2026 15:01
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17502

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17502"

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates JavaScript dependency manifests in Aspire playground projects to remediate remaining Dependabot security alerts by bumping webpack-dev-server and qs via direct version changes and/or package-manager overrides.

Changes:

  • Bump webpack-dev-server to 5.2.4 in the Angular and React JS playgrounds (direct bump in React; override in Angular).
  • Force qs to 6.15.2 in the NodeFrontend sample via both npm and pnpm overrides and regenerated lockfiles.
  • Regenerate affected lockfiles (package-lock.json, pnpm-lock.yaml) to reflect updated dependency graphs.

Reviewed changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
playground/AspireWithNode/NodeFrontend/pnpm-lock.yaml Updates pnpm lock to resolve qs at 6.15.2 and record override.
playground/AspireWithNode/NodeFrontend/package.json Adds npm + pnpm overrides to pin qs to ^6.15.2.
playground/AspireWithNode/NodeFrontend/package-lock.json Updates npm lockfile to resolve qs at 6.15.2 and sync dependency metadata.
playground/AspireWithJavaScript/AspireJavaScript.React/package.json Bumps webpack-dev-server devDependency to ^5.2.4.
playground/AspireWithJavaScript/AspireJavaScript.React/package-lock.json Regenerates lockfile for the webpack-dev-server 5.2.4 dependency graph.
playground/AspireWithJavaScript/AspireJavaScript.Angular/package.json Adds an override to force webpack-dev-server to ^5.2.4.
playground/AspireWithJavaScript/AspireJavaScript.Angular/package-lock.json Updates lockfile to resolve webpack-dev-server at 5.2.4.
Files not reviewed (4)
  • playground/AspireWithJavaScript/AspireJavaScript.Angular/package-lock.json: Language not supported
  • playground/AspireWithJavaScript/AspireJavaScript.React/package-lock.json: Language not supported
  • playground/AspireWithNode/NodeFrontend/package-lock.json: Language not supported
  • playground/AspireWithNode/NodeFrontend/pnpm-lock.yaml: Language not supported

Comment on lines 3172 to +3175
"node_modules/qs": {
"version": "6.15.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
"integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
"version": "6.15.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz",
"integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==",
Comment on lines 14381 to +14384
"node_modules/webpack-dev-server": {
"version": "5.2.3",
"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.2.3.tgz",
"integrity": "sha512-9Gyu2F7+bg4Vv+pjbovuYDhHX+mqdqITykfzdM9UyKqKHlsE5aAjRhR+oOEfXW5vBeu8tarzlJFIZva4ZjAdrQ==",
"version": "5.2.4",
"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.2.4.tgz",
"integrity": "sha512-GqDPGZN9bRqKBTkp4aWkobDDHMsrXKoGSdOH56smIri8qR0JG8gfL8/v/f/OZR3/OKXjG8uwJbFVhKm/FNU/UA==",
Comment on lines 6770 to +6773
"node_modules/webpack-dev-server": {
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.2.2.tgz",
"integrity": "sha512-QcQ72gh8a+7JO63TAx/6XZf/CWhgMzu5m0QirvPfGvptOusAxG12w2+aua1Jkjr7hzaWDnJ2n6JFeexMHI+Zjg==",
"version": "5.2.4",
"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-5.2.4.tgz",
"integrity": "sha512-GqDPGZN9bRqKBTkp4aWkobDDHMsrXKoGSdOH56smIri8qR0JG8gfL8/v/f/OZR3/OKXjG8uwJbFVhKm/FNU/UA==",
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

CLI E2E Tests unknown — 107 passed, 0 failed, 2 unknown (commit aad7d58)

View all recordings
Status Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View recording
AddPackageWhileAppHostRunningDetached ▶️ View recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View recording
AgentInitCommand_DefaultSelection_InstallsDefaultSkills ▶️ View recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View recording
AgentMcpListStructuredLogsReturnsLogsFromStarterApp ▶️ View recording
AgentMcpListStructuredLogsReturnsLogsFromStarterApp_DevLocalhost ▶️ View recording
AgentMcpListStructuredLogsReturnsLogsFromStarterApp_Isolated ▶️ View recording
AllPublishMethodsBuildDockerImages ▶️ View recording
AspireAddPackageVersionToDirectoryPackagesProps ▶️ View recording
AspireInitSingleFileAppHostRunsViaDotnetRunAppHost ▶️ View recording
AspireInitWithExistingAppHostDirRecreatesMissingNuGetConfigAndPreservesFiles ▶️ View recording
AspireInitWithSolutionFileGeneratesAppHostThatBuildsAgainstChannelHive ▶️ View recording
AspireStartUpdatesStaleTypeScriptAppHostPath ▶️ View recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View recording
AspireUpdateRemovesOrphanAppHostPackageVersionWhenSdkAlreadyCurrent ▶️ View recording
Banner_DisplayedOnFirstRun ▶️ View recording
Banner_DisplayedWithExplicitFlag ▶️ View recording
Banner_NotDisplayedWithNoLogoFlag ▶️ View recording
CertificatesClean_RemovesCertificates ▶️ View recording
CertificatesTrust_WithNoCert_CreatesAndTrustsCertificate ▶️ View recording
CertificatesTrust_WithUntrustedCert_TrustsCertificate ▶️ View recording
ConfigSetGet_CreatesNestedJsonFormat ▶️ View recording
CreateAndRunAspireStarterProject ▶️ View recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View recording
CreateAndRunEmptyAppHostProject ▶️ View recording
CreateAndRunJavaEmptyAppHostProject ▶️ View recording
CreateAndRunJsReactProject ▶️ View recording
CreateAndRunPythonReactProject ▶️ View recording
CreateAndRunTypeScriptEmptyAppHostProject ▶️ View recording
CreateAndRunTypeScriptStarterProject ▶️ View recording
CreateJavaAppHostWithViteApp ▶️ View recording
CreateTypeScriptAppHostWithViteApp_UsesConfiguredToolchain ▶️ View recording
DashboardRunWithAgentMcpListTracesReturnsNoTraces ▶️ View recording
DashboardRunWithAgentMcpListTracesReturnsNoTraces_DevLocalhost ▶️ View recording
DashboardRunWithOtelTracesReturnsNoTraces ▶️ View recording
DashboardRunWithOtelTracesReturnsNoTraces_DevLocalhost ▶️ View recording
DeployK8sBasicApiService ▶️ View recording
DeployK8sWithExternalHelmChart ▶️ View recording
DeployK8sWithGarnet ▶️ View recording
DeployK8sWithMongoDB ▶️ View recording
DeployK8sWithMySql ▶️ View recording
DeployK8sWithPostgres ▶️ View recording
DeployK8sWithRabbitMQ ▶️ View recording
DeployK8sWithRedis ▶️ View recording
DeployK8sWithSqlServer ▶️ View recording
DeployK8sWithValkey ▶️ View recording
DeployTypeScriptAppToKubernetes ▶️ View recording
DescribeCommandResolvesReplicaNames ▶️ View recording
DescribeCommandShowsRunningResources ▶️ View recording
DetachFormatJsonProducesValidJson ▶️ View recording
DetachFormatJsonProducesValidJsonWhenRestartingExistingInstance ▶️ View recording
DoListStepsShowsPipelineSteps ▶️ View recording
DocsCommand_RendersInteractiveMarkdownFromLocalSource ▶️ View recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View recording
DoctorCommand_TypeScriptAppHostReportsMissingConfiguredToolchain ▶️ View recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View recording
GatewayWithoutExternalEndpoint_FailsPublishWithGuidance ▶️ View recording
GeneratedAspireDevScript_StartsWatchMode_WithConfiguredToolchain ▶️ View recording
GlobalMigration_HandlesCommentsAndTrailingCommas ▶️ View recording
GlobalMigration_HandlesMalformedLegacyJson ▶️ View recording
GlobalMigration_PreservesAllValueTypes ▶️ View recording
GlobalMigration_SkipsWhenNewConfigExists ▶️ View recording
GlobalSettings_MigratedFromLegacyFormat ▶️ View recording
IngressWithoutExternalEndpoint_FailsPublishWithGuidance ▶️ View recording
InitTypeScriptAppHost_AugmentsExistingViteRepoAtRoot ▶️ View recording
InteractiveCSharpInitCreatesExpectedFiles ▶️ View recording
InvalidAppHostPathWithComments_IsHealedOnRun ▶️ View recording
JavaScriptHostingApisRunFromTypeScriptAppHost ▶️ View recording
LatestCliCanStartStableChannelAppHost ▶️ View recording
LatestCliCanStartStableChannelTypeScriptAppHost ▶️ View recording
LegacySettingsMigration_AdjustsRelativeAppHostPath ▶️ View recording
LogLevelTrace_ProducesTraceEntriesInCliLogFile ▶️ View recording
LogsCommandShowsResourceLogs ▶️ View recording
OtelLogsReturnsStructuredLogsFromStarterApp ▶️ View recording
OtelLogsReturnsStructuredLogsFromStarterAppIsolated ▶️ View recording
PsCommandListsRunningAppHost ▶️ View recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View recording
PublishJavaScriptPatternsGeneratesExpectedDockerComposeArtifacts ▶️ View recording
PublishWithConfigureEnvFileUpdatesEnvOutput ▶️ View recording
PublishWithDockerComposeServiceCallbackSucceeds ▶️ View recording
PublishWithoutOutputPathUsesAppHostDirectoryDefault ▶️ View recording
ResourceCommand_FailedExecution_DisplaysAppHostLogPathAndLogContainsEntries ▶️ View recording
ResourceCommand_FailsWhenInteractionServiceIsRequired ▶️ View recording
ResourceCommand_SetAndDeleteParameterUpdatesDescribeOutput ▶️ View recording
RestoreGeneratesSdkFiles ▶️ View recording
RestoreGeneratesSdkFiles_WithConfiguredToolchain ▶️ View recording
RestoreRefreshesGeneratedSdkAfterAddingIntegration ▶️ View recording
RestoreSupportsConfigOnlyHelperPackageAndCrossPackageTypes ▶️ View recording
RunFromParentDirectory_UsesExistingConfigNearAppHost ▶️ View recording
RunReportsSyntaxErrorsForDotNetAppHost ▶️ View recording
RunReportsSyntaxErrorsForTypeScriptAppHost ▶️ View recording
SecretCrudOnDotNetAppHost ▶️ View recording
SecretCrudOnTypeScriptAppHost ▶️ View recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View recording
StartAndWaitForTypeScriptSqlServerAppHostWithNativeAssets ▶️ View recording
StartReportsSyntaxErrorsForDotNetAppHost ▶️ View recording
StartReportsSyntaxErrorsForTypeScriptAppHost ▶️ View recording
StopAllAppHostsFromAppHostDirectory ▶️ View recording
StopJavaPolyglotAppHostUsingApphostDirectory ▶️ View recording
StopNonInteractiveSingleAppHost ▶️ View recording
StopTypeScriptPolyglotAppHostUsingApphostDirectory ▶️ View recording
StopWithNoRunningAppHostExitsSuccessfully ▶️ View recording
UnAwaitedChainsCompileWithAutoResolvePromises ▶️ View recording
UpdateProjectChannelToStable_CSharpEmptyAppHost_PreservesAspireConfigChannel ▶️ View recording
UpdateProjectChannelToStable_CSharpSingleFileInit_PreservesAspireConfigChannel ▶️ View recording
UpdateProjectChannelToStable_TypeScriptSingleFileInit_PreservesAspireConfigChannel ▶️ View recording
UpdateProjectChannelToStable_TypeScript_PreviewsStablePackagesAndPreservesChannel ▶️ View recording

📹 Recordings uploaded automatically from CI run #26457514764

@IEvangelist
Copy link
Copy Markdown
Member Author

Drive-by validation comment - GitHub won't let me approve my own PR:

Ready for a maintainer review/merge.

@IEvangelist IEvangelist merged commit e610574 into main May 27, 2026
615 of 619 checks passed
@IEvangelist IEvangelist deleted the dapine/fix-webpack-dev-server-nodefrontend-qs branch May 27, 2026 13:13
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 13.5 milestone May 27, 2026
@aspire-repo-bot
Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

docs_required → signals are false positives for a playground-only JS dependency bump; allowlist: build_or_ci_only

Triggered signals (2): pr_body_has_cli_flag_mention, pr_body_has_security_marker

  • pr_body_has_cli_flag_mention: Evidence is --legacy-peer-deps and --package-lock-only (npm CLI flags used to regenerate lockfiles), not Aspire CLI options. False positive.
  • pr_body_has_security_marker: Evidence is GHSA-79cf-xcqc-c78w and GHSA-r2pq-mvjr-w5xj — JavaScript package vulnerabilities in playground dev tooling (webpack-dev-server, qs). These affect only playground/ dev scripts, not any shipped Aspire product artifact.

All 7 changed files are under playground/ (package.json, package-lock.json, pnpm-lock.yaml in three playground sub-projects) — confirmed by only_test_or_build_changes: true. The playground/ path is explicitly included in the build_or_ci_only allowlist. No Aspire product code, public API, CLI surface, dashboard, or integration was modified.

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.

3 participants