The vulnerability stems from improper input validation (CWE-20) and code injection (CWE-94) in the connection form's CSFLE handling. The commit diff shows replacement of parseFilter from mongodb-query-parser with parseShellStringToEJSON using strict mode, indicating the original function lacked proper validation safeguards. The vulnerable textToEncryptedFieldConfig function processed user input using this non-strict parser, potentially allowing execution of malicious JavaScript through shell-style EJSON parsing. The high confidence comes from the direct correlation between the patch's parser replacement and the vulnerability description's focus on ejson shell parser bypasses.