CVE-2026-19202
Token cache shares Google ID token across audiences, enabling cross‑service token replay.
- CVSS 9.1
- CWE-524
- Authentication, Authorization, and Session Management
- Remote
A caching flaw in the toolbox-core package of the mcp-toolbox-sdk-python SDK causes the same Google ID token to be cached and reused across different audiences. If an application uses the SDK to authenticate to two or more different audiences within the same process, the module-level token cache fails to key its cached tokens by the requested audience. Consequently, a valid, unexpired token minted for a sensitive service (Service A) can be retrieved from the cache and sent to a secondary service (Service B). An attacker who operates, compromises, or monitors traffic to Service B can capture this token and replay it to impersonate the victim application against Service A.
- CWE
- CWE-524
- CVSS base score
- 9.1
- Published
- 2026-09-22
- OWASP
- A07 Identification and Authentication Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Insecure Authentication Mechanisms
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- toolbox-core
- Fixed by upgrading
- Yes
Solution
Upgrade mcp-toolbox-sdk-python to version ≥ 1.2.3, which adds audience‑scoped caching for Google ID tokens.
Vulnerable code sample
import toolbox_core.auth as auth
# Simple wrapper to obtain an ID token for a given audience
def get_id_token(audience: str) -> str:
# VULNERABLE: token cache does not differentiate audiences
if "cached_token" in auth._cache:
return auth._cache["cached_token"]
token = auth.fetch_google_id_token(audience)
auth._cache["cached_token"] = token
return tokenPatched code sample
import toolbox_core.auth as auth
# Simple wrapper to obtain an ID token for a given audience
def get_id_token(audience: str) -> str:
# FIX: cache keyed by audience to avoid cross‑audience reuse
cache_key = f"cached_token:{audience}"
if cache_key in auth._cache:
return auth._cache[cache_key]
token = auth.fetch_google_id_token(audience)
auth._cache[cache_key] = token
return tokenPublished fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- fix(toolbox-core): cache Google ID tokens per audience to prevent cross-audience token reuse (googleapis/mcp-toolbox-sdk-python)
packages/toolbox-core/src/toolbox_core/auth_methods.py,packages/toolbox-core/src/toolbox_core/auth_methods.py · aget_google_id_token,packages/toolbox-core/src/toolbox_core/auth_methods.py · get_google_id_token,packages/toolbox-core/src/toolbox_core/auth_methods.py · get_google_token_from_aud,packages/toolbox-core/src/toolbox_core/auth_methods.py · _is_token_valid,packages/toolbox-core/src/toolbox_core/auth_methods.py · _update_cache
Cite this entry
@misc{vaitp:cve202619202,
title = {{Token cache shares Google ID token across audiences, enabling cross‑service token replay.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-19202},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-19202/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
