GitHub Advisoryadvisory · Maven
GHSA-4g9c-3x4p-mfpp Spring gRPC SecurityContext leaks across requests upon authorization failure
MEDIUM
Official page ↗
- Aliases
- CVE-2026-40968
- Ecosystem
- Maven
- Packages
- org.springframework.grpc:spring-grpc
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- Weaknesses
- CWE-653
- Reviewed
- 2026-05-06
Affected packages
• Maven org.springframework.grpc:spring-grpc: < 1.0.3 → fixed in 1.0.3
Description
When an authenticated user is denied access to a gRPC method, their authenticated identity remains bound to the gRPC worker thread and can be inherited by a subsequent unauthenticated request on the same thread. This may allow the subsequent user to gain escalated permissions.
Affected versions:
Spring gRPC: 1.0.0 - 1.0.2 (fixed in 1.0.3). Older, unsupported versions are also affected.
Related
Alias · CVE (1)
- CVE-2026-40968 When an authenticated user is denied access to a gRPC method, their authenticated identity remains bound to the gRPC worker thread and can… vulnerability
Weakness · CWE (1)
- CWE-653 Improper Isolation or Compartmentalization weakness