Skip to content

Respect case in SignalR Redis group subscriptions - #70451

Merged
rbhanda merged 2 commits into
mainfrom
security/cve-2026-114147-main
Nov 10, 2026
Merged

rbhanda merged 2 commits into
mainfrom
security/cve-2026-114147-main

Conversation

@rbhanda

@rbhanda rbhanda commented Nov 10, 2026

Copy link
Copy Markdown
Contributor
  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making.

Description

Make SignalR Redis group tracking case-sensitive and keep subscription state consistent when connections disconnect or subscribe/unsubscribe operations fail.

This addresses CVE-2026-114147.

Validation

Focused Redis and connection-lifecycle regression coverage is included. Managed tests were not completed locally because the current repository bootstrap selected an MSBuild version below the repository SDK minimum; normal PR CI is required before merge.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: fdac132c-0926-4fda-8c97-88ae5b59b9fd
@github-actions github-actions Bot added the area-signalr Includes: SignalR clients and servers label Nov 10, 2026
@rbhanda
rbhanda marked this pull request as ready for review November 10, 2026 19:28
@rbhanda
rbhanda requested a review from halter73 as a code owner November 10, 2026 19:28
Copilot AI balanced review requested due to automatic review settings November 10, 2026 19:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Changes to connection-abort ordering and Redis subscription rollback require CI and real-client integration validation, since managed regression tests were not run and the fake subscriber does not establish recovery behavior.

No open issues 🎉

What changed in this PR

This PR makes SignalR’s Redis group tracking case-sensitive and coordinates subscription state with connection cleanup and failed subscription attempts.

Changes:

  • Tracks group membership and disconnection state under the subscription manager’s lock.
  • Rolls back failed subscriptions and schedules cleanup for all tracked groups.
  • Ensures connections are aborted before lifetime-manager disconnect callbacks, with regression tests for casing, failures, and lifecycle ordering.

Managed tests were not completed locally due to the reported MSBuild/SDK mismatch; CI validation remains necessary.

File Description
src/​SignalR/​server/​StackExchangeRedis/​test/​TestConnectionMultiplexer.cs Adds subscription inspection and failure-injection hooks.
src/​SignalR/​server/​StackExchangeRedis/​test/​RedisHubLifetimeManagerTests.cs Adds casing, subscription rollback, and disconnect-cleanup regression tests.
src/​SignalR/​server/​StackExchangeRedis/​src/​RedisHubLifetimeManager.cs Uses case-sensitive group tracking and coordinated subscription cleanup.
src/​SignalR/​server/​StackExchangeRedis/​src/​Internal/​RedisSubscriptionManager.cs Synchronizes membership updates, tracks disconnection, and rolls back failed subscriptions.
src/​SignalR/​server/​StackExchangeRedis/​src/​Internal/​IRedisFeature.cs Shares the internal group-membership and disconnection-state contract.
src/​SignalR/​server/​SignalR/​test/​Microsoft.AspNetCore.SignalR.Tests/​HubConnectionHandlerTests.cs Checks that connection abort precedes disconnect callbacks after connection setup failures.
src/​SignalR/​server/​Core/​src/​HubConnectionHandler.cs Aborts the connection before lifetime-manager disconnect cleanup.

Review effort: Balanced

@PureWeen

Copy link
Copy Markdown
Member

/review

@rbhanda
rbhanda merged commit 98df1b2 into main Nov 10, 2026
32 checks passed
@rbhanda
rbhanda deleted the security/cve-2026-114147-main branch November 10, 2026 22:29
@rbhanda
rbhanda temporarily deployed to copilot-pat-pool November 10, 2026 22:29 — with GitHub Actions Inactive
@rbhanda
rbhanda temporarily deployed to copilot-pat-pool November 10, 2026 22:29 — with GitHub Actions Inactive
@rbhanda
rbhanda temporarily deployed to copilot-pat-pool November 10, 2026 22:30 — with GitHub Actions Inactive
@rbhanda
rbhanda temporarily deployed to copilot-pat-pool November 10, 2026 22:32 — with GitHub Actions Inactive
@rbhanda
rbhanda temporarily deployed to copilot-pat-pool November 10, 2026 22:33 — with GitHub Actions Inactive
@rbhanda
rbhanda temporarily deployed to copilot-pat-pool November 10, 2026 22:33 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

ℹ️ This pull request wasn't processed automatically.

This change requires specialized review. Please confirm whether documentation updates are needed and handle them through the appropriate process.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — e4f38c37 Deployed Nov 10, 2026 by rbhanda via conclusion #279
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants