The vulnerability exists in the Deno WebSocket client's handling of handshake response headers. Specifically, the code does not gracefully handle cases where the Sec-WebSocket-Protocol and Sec-WebSocket-Extensions headers contain non-ASCII characters. The analysis of the patch commit 0ee75392669d26bc1e051ecd5bdc90b1997ad963 reveals that the op_ws_create function in ext/websocket/lib.rs is the point of failure. The original code used header.to_str().unwrap(), which assumes the header value is always valid UTF-8 and will panic if it's not. A remote attacker controlling the WebSocket server can send a specially crafted handshake response with invalid header bytes to crash the Deno client process. The patch replaces the unsafe .unwrap() calls with .and_then(|header| header.to_str().ok()) and .filter_map(|header| header.to_str().ok()), which safely handle invalid UTF-8 sequences by ignoring the problematic headers instead of crashing. Therefore, deno_websocket::op_ws_create is the vulnerable function that would appear in a runtime profile during exploitation.