VAITP Dataset

← Back to the dataset

CVE-2026-114456

CORS/CSRF flaw in Snowflake externalbrowser SSO loopback listener allows token hijack.

  • CVSS 6.5
  • CWE-346
  • Authentication, Authorization, and Session Management
  • Remote

Multiple Snowflake client drivers implementing the `authenticator=externalbrowser` single sign-on flow could have allowed an attacker to interfere with a user's login attempt through weaknesses in the local loopback callback listener used to receive the identity provider's response. The listener reflected an arbitrary request's Origin header into its CORS response headers and accepted the first token-bearing request it received during the login window without verifying a CSRF state value bound to that specific login attempt. An attacker able to reach the listener during an active login might have leveraged this to submit a forged callback response, causing the authentication attempt to fail. The fix is available in Snowflake Connector for Python 4.8.0, Snowflake Go Driver v2.3.0, Snowflake JDBC Driver 4.4.0 (including the snowflake-jdbc-fips and snowflake-jdbc-thin artifacts), Snowflake Node.js Driver 3.4.0, Snowflake Connector for .NET 6.3.0, Snowflake ODBC Driver 4.0.0, Snowflake PHP PDO Driver 4.3.0, and libsnowflakeclient 2.11.1. Go v1 users must migrate to the latest major version of the module. Users must manually upgrade.

CVSS base score
6.5
Published
2026-11-04
OWASP
A07 Identification and Authentication Failures
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Authentication, Authorization, and Session Management
Subcategory
Insecure Authentication Mechanisms
Accessibility scope
Remote
Impact
Unauthorized Access
Affected component
Snowflake Connector for Python 4.8.0
Fixed by upgrading
Yes

Solution

Upgrade to the patched versions: Python Connector 4.8.0, Go Driver 2.3.0, JDBC Driver 4.4.0 (including snowflake‑jdbc‑fips and snowflake‑jdbc‑thin), Node.js Driver 3.4.0, .NET Connector 6.3.0, ODBC Driver 4.0.0, PHP PDO Driver 4.3.0, and libsnowflakeclient 2.11.1 (Go v1 users must move to the latest major module version).

Vulnerable code sample

import http.server
import socketserver
import urllib.parse

class CallbackHandler(http.server.BaseHTTPRequestHandler):
    # VULNERABLE: reflects arbitrary Origin header and lacks CSRF state verification
    def do_GET(self):
        parsed = urllib.parse.urlparse(self.path)
        params = urllib.parse.parse_qs(parsed.query)
        token = params.get('token', [None])[0]
        # No check of 'state' parameter against stored login state

        origin = self.headers.get('Origin', '*')
        self.send_response(200)
        self.send_header('Content-Type', 'application/json')
        self.send_header('Access-Control-Allow-Origin', origin)  # reflected Origin
        self.end_headers()
        response = f'{{"token":"{token}"}}' if token else '{"error":"missing token"}'
        self.wfile.write(response.encode())

def start_listener(port=8080):
    with socketserver.TCPServer(('127.0.0.1', port), CallbackHandler) as httpd:
        httpd.serve_forever()

Patched code sample

import http.server
import socketserver
import urllib.parse
import secrets

# Store expected state per login attempt
_expected_state = None

def generate_state():
    global _expected_state
    _expected_state = secrets.token_urlsafe(16)
    return _expected_state

class CallbackHandler(http.server.BaseHTTPRequestHandler):
    # FIX: validates CSRF state and uses fixed CORS origin
    def do_GET(self):
        parsed = urllib.parse.urlparse(self.path)
        params = urllib.parse.parse_qs(parsed.query)
        token = params.get('token', [None])[0]
        state = params.get('state', [None])[0]

        # Verify state token matches the one generated for this login
        if state != _expected_state:
            self.send_response(400)
            self.end_headers()
            self.wfile.write(b'{"error":"invalid state"}')
            return

        self.send_response(200)
        self.send_header('Content-Type', 'application/json')
        # Use a static whitelist instead of reflecting Origin
        self.send_header('Access-Control-Allow-Origin', 'https://trusted.example.com')
        self.end_headers()
        response = f'{{"token":"{token}"}}' if token else '{"error":"missing token"}'
        self.wfile.write(response.encode())

def start_listener(port=8080):
    with socketserver.TCPServer(('127.0.0.1', port), CallbackHandler) as httpd:
        httpd.serve_forever()

Cite this entry

@misc{vaitp:cve2026114456,
  title        = {{CORS/CSRF flaw in Snowflake externalbrowser SSO loopback listener allows token hijack.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-114456},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-114456/}}
}

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.