Critical Credential‑Theft Vulnerability in SAP Cloud SDK for Python Exposes OAuth2 Secrets
What It Is — SAP announced a critical security flaw in its Cloud SDK for Python on October 13, 2026. The SDK is the official client library that developers use to integrate applications with services on the SAP Business Technology Platform (BTP). In multi‑tenant BTP applications that rely on the SDK, the library can inadvertently forward an application’s OAuth 2.0 client credentials (client‑id and client‑secret) to an arbitrary server controlled by an attacker.
The vulnerability stems from how the SDK resolves the tenant sub‑domain used to reach BTP services. If an attacker can register or otherwise control a tenant sub‑domain that the target application trusts, the SDK will construct a request URL that points to the attacker’s domain. Because the OAuth 2.0 client credentials are embedded in the request body (or Authorization header), they are sent in clear text over HTTPS to the attacker’s server, where they can be harvested and later used to impersonate the compromised application against any BTP service.
The flaw is rated CVSS 3.1 10.0 (Critical) and is classified as a “credential‑theft” vulnerability rather than a remote code execution. It affects all versions of the SAP Cloud SDK for Python released prior to the advisory‑date patch (v3.2.1 and earlier). The issue is limited to multi‑tenant workloads; single‑tenant or on‑premise deployments that do not rely on the SDK’s tenant‑resolution logic are not impacted.
Affected Products – SAP Cloud SDK for Python (v3.2.1 and earlier) used by applications on SAP Business Technology Platform (BTP) that employ OAuth 2.0 client credentials.
Why It Matters for Trust & Control Assurance – The flaw demonstrates a gap in credential‑handling controls; organizations must ensure that third‑party libraries cannot be coerced into leaking secrets. Capability focus: ACCESS_CONTROLS.
Recommended Actions –
- Update the SDK – Apply SAP’s patch (v3.2.2 or later) immediately.
- Rotate OAuth 2.0 client credentials for all affected applications and revoke any tokens that may have been issued.
- Validate tenant‑subdomain ownership – enforce strict DNS and sub‑domain registration policies to prevent unauthorized control.
- Enable logging of outbound SDK calls and monitor for anomalous destination domains.
- Conduct a credential‑exposure audit using continuous evidence collection to confirm that no stale secrets remain in code repositories or configuration stores.
Source: [SAP Security Advisory – October 13 2026]