CVE-2026-130153
Okta Python SDK leaks client_secret/JWT in URL query when PAR is unavailable.
- CVSS 4.7
- CWE-522
- Information Leakage
- Remote
The Okta Client SDK for Python (okta-client-python) includes client authentication values (client_secret or JWT assertions) as query parameters in the front-channel authorization URL when executing the authorization code flow without Pushed Authorization Requests (PAR). When PAR is disabled, unsupported by the authorization server, or fails, the SDK falls back to standard authorization URL construction, transmitting these parameters via user-agent requests.
- CWE
- CWE-522
- CVSS base score
- 4.7
- Published
- 2026-11-19
- OWASP
- A02 Cryptographic Failures
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Information Leakage
- Subcategory
- Insecure Handling of Sensitive Data
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- Python
- Fixed by upgrading
- Yes
Solution
Upgrade the Okta Python SDK to version 3.1.0 or later, which removes client_secret/JWT assertions from the front‑channel authorization URL.
Vulnerable code sample
import urllib.parse
from okta.client import Client as OktaClient
def get_authorization_url(client_id: str, redirect_uri: str, client_secret: str) -> str:
# VULNERABLE: client_secret leaked in URL query parameters
params = {
"client_id": client_id,
"response_type": "code",
"scope": "openid profile email",
"redirect_uri": redirect_uri,
"client_secret": client_secret, # insecure
}
base = "https://example.okta.com/oauth2/v1/authorize"
return f"{base}?{urllib.parse.urlencode(params)}"
def initiate_flow():
okta = OktaClient()
url = get_authorization_url(
client_id="my_client_id",
redirect_uri="https://myapp/callback",
client_secret="super_secret_value"
)
# The URL would be sent to the user's browser
return urlPatched code sample
import urllib.parse
from okta.client import Client as OktaClient
def get_authorization_url(client_id: str, redirect_uri: str) -> str:
# FIX: removed client_secret from URL query parameters
params = {
"client_id": client_id,
"response_type": "code",
"scope": "openid profile email",
"redirect_uri": redirect_uri,
}
base = "https://example.okta.com/oauth2/v1/authorize"
return f"{base}?{urllib.parse.urlencode(params)}"
def initiate_flow():
okta = OktaClient()
url = get_authorization_url(
client_id="my_client_id",
redirect_uri="https://myapp/callback"
)
# The URL is now safe to send to the user's browser
return urlCite this entry
@misc{vaitp:cve2026130153,
title = {{Okta Python SDK leaks client_secret/JWT in URL query when PAR is unavailable.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-130153},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-130153/}}
}
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 ::
