The vulnerability exists in the load function of @kilocode/cli which is responsible for handling the KILO_CONFIG_CONTENT environment variable. The function performs token substitution, specifically for {file:/path} tokens, before validating the configuration schema. This allows an attacker who can control the KILO_CONFIG_CONTENT environment variable to read arbitrary files from the system. The file's content is then exposed through a Zod schema validation error. The vulnerability is a classic case of improper input validation and insecure processing of environment variables. The provided gist offers a detailed explanation and a proof-of-concept that confirms this behavior.