Spring gRPC SecurityContext leaks across requests on authorization failure
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40968
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:11 UTC · Revision 1
Source evidence
Spring gRPC SecurityContext leaks across requests on authorization failure
core-osv · Original sourcePublished 28 Apr 2026, 13:42 UTC
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.
osv:CVE-2026-40968
Complete source record
{
"id": "9d4772f36328516cf93973cafb15f4e8fee2dec0fe5a6e501f43f4dedefb5a58",
"url": "https://osv.dev/vulnerability/CVE-2026-40968",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Spring gRPC SecurityContext leaks across requests on authorization failure",
"summary": "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.",
"evidence": "osv:CVE-2026-40968",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-40968",
"aliases": [
"CVE-2026-40968",
"GHSA-4g9c-3x4p-mfpp"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/spring-projects/spring-grpc",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "650e78f5eeeb8c0c366f0e65b65001c35e97014d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:vmware:spring_grpc:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v1.0.0-RC1",
"v0.11.0",
"v0.10.0",
"v0.9.0",
"v0.8.0",
"v0.7.0",
"v0.6.0",
"v0.5.0",
"v0.4.0",
"v0.3.0",
"v0.2.0",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40968.json"
}
}
],
"modified": "2026-10-28T02:30:49.423152518Z",
"provider": "osv",
"references": [
"https://spring.io/security/cve-2026-40968",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40968.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-40968"
],
"provider_metadata": {
"cwe_ids": [
"CWE-653"
],
"cna_assigner": "vmware",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.0.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40968.json"
}
},
"related_cves": [
{
"value": "CVE-2026-40968",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518025,
"published_at": "2026-04-28T13:42:35.525+00:00"
}