VAITP Dataset

← Back to the dataset

CVE-2026-89111

OAuth2 SSRF in SAP Cloud SDK for Python: tenant_subdomain misuse exfiltrates credentials.

  • CVSS 10.0
  • CWE-918
  • Input Validation and Sanitization
  • Remote

The SAP Cloud SDK for Python contains an OAuth2 SSRF vulnerability affecting multi-tenant BTP applications. An attacker who controls the tenant_subdomain parameter can redirect OAuth2 token requests to an attacker-controlled server, causing client credentials to be exfiltrated.

CVSS base score
10.0
Published
2026-10-13
OWASP
A08 Software and Data Integrity Failures
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Input Validation and Sanitization
Subcategory
Insecure Parsing or Deserialization
Accessibility scope
Remote
Impact
Information Disclosure
Affected component
SAP Cloud SDK for Python
Fixed by upgrading
Yes

Solution

Upgrade the SAP Cloud SDK for Python to version 1.27.0 or later, which patches the OAuth2 SSRF vulnerability.

Vulnerable code sample

import re
import requests

def fetch_oauth_token(tenant_subdomain: str, client_id: str, client_secret: str) -> str:
    # VULNERABLE: unsanitized tenant_subdomain used in request URL
    token_url = f"https://{tenant_subdomain}.authentication.sap.com/oauth/token"
    payload = {
        "grant_type": "client_credentials",
        "client_id": client_id,
        "client_secret": client_secret,
    }
    response = requests.post(token_url, data=payload, timeout=5)
    response.raise_for_status()
    return response.json()["access_token"]

Patched code sample

import re
import requests

def fetch_oauth_token(tenant_subdomain: str, client_id: str, client_secret: str) -> str:
    # FIX: validate tenant_subdomain against allowed pattern
    if not re.fullmatch(r"[a-z0-9-]{1,63}", tenant_subdomain):
        raise ValueError("Invalid tenant subdomain")
    token_url = f"https://{tenant_subdomain}.authentication.sap.com/oauth/token"
    payload = {
        "grant_type": "client_credentials",
        "client_id": client_id,
        "client_secret": client_secret,
    }
    response = requests.post(token_url, data=payload, timeout=5)
    response.raise_for_status()
    return response.json()["access_token"]

Cite this entry

@misc{vaitp:cve202689111,
  title        = {{OAuth2 SSRF in SAP Cloud SDK for Python: tenant_subdomain misuse exfiltrates credentials.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-89111},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-89111/}}
}

Download this entry as JSON Download the whole dataset

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 ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.