CVE-2026-109799
Improper JWT signature verification in SAP Cloud SDK Python IASContextProvider allows forged tenant/user identities.
- CVSS 7.5
- CWE-347
- Cryptographic
- Remote
The SAP Cloud SDK for Python contains an improper cryptographic signature verification vulnerability (CWE-347) in IASContextProvider, the runtime-context provider registered by default via bootstrap(app).IASContextProvider extracted the app_tid, sap_gtid and user_uuid claims from the IAS JWT in the Authorization header using an unverified decoder and wrote them into the request-scoped RuntimeContext without validating the token signature. A remote caller could submit a self-signed JWT naming a victim tenant/user; the forged identity then propagated to every consumer of the runtime context:OTel span attributes (sap.tenancy.tenant_id, user.id) via RuntimeContextSpanProcessorlog records via IdentityLogFilteraudit events (tenant_id, user_initiator_id) via AuditClienttenant routing via CBCClientThis completes an earlier remediation that fixed the same unverified pattern in StarletteIASTelemetryMiddleware but did not cover IASContextProvider.
- CWE
- CWE-347
- CVSS base score
- 7.5
- Published
- 2026-11-10
- OWASP
- A02 Cryptographic Failures
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Cryptographic
- Subcategory
- Cryptographic Implementation Error
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- SAP Cloud SDK for Python
- Fixed by upgrading
- Yes
Solution
Upgrade the SAP Cloud SDK for Python to v1.5.2 (or later), which adds proper signature verification in IASContextProvider.
Vulnerable code sample
import jwt
from sap.cloud_sdk.context import RuntimeContext, IASContextProvider
class MyIASContextProvider(IASContextProvider):
def __init__(self, public_key):
self._public_key = public_key
super().__init__()
def extract_context(self, request):
# VULNERABLE: decoding JWT without signature verification
token = request.headers.get("Authorization", "").replace("Bearer ", "")
payload = jwt.decode(token, options={"verify_signature": False})
ctx = RuntimeContext()
ctx.app_tid = payload.get("app_tid")
ctx.sap_gtid = payload.get("sap_gtid")
ctx.user_uuid = payload.get("user_uuid")
return ctxPatched code sample
import jwt
from sap.cloud_sdk.context import RuntimeContext, IASContextProvider
class MyIASContextProvider(IASContextProvider):
def __init__(self, public_key):
self._public_key = public_key
super().__init__()
def extract_context(self, request):
# FIX: verify JWT signature using the provided public key
token = request.headers.get("Authorization", "").replace("Bearer ", "")
payload = jwt.decode(token, self._public_key, algorithms=["RS256"])
ctx = RuntimeContext()
ctx.app_tid = payload.get("app_tid")
ctx.sap_gtid = payload.get("sap_gtid")
ctx.user_uuid = payload.get("user_uuid")
return ctxCite this entry
@misc{vaitp:cve2026109799,
title = {{Improper JWT signature verification in SAP Cloud SDK Python IASContextProvider allows forged tenant/user identities.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-109799},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-109799/}}
}
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 ::
