The vulnerability exists in the ToolConfigModel classes in both the Ruby and Python backends of OpenC3 COSMOS. The core issue is a lack of input validation on the tool and name parameters used in functions that manage tool configurations (save_config, load_config, list_configs, delete_config). An attacker could provide specially crafted strings containing path traversal sequences (e.g., ../) as the configuration name. The save_config function would then pass this malicious name to LocalMode.save_tool_config, which constructs a file path and writes a file. Without validation, this allows writing files to arbitrary locations within the /plugins directory, potentially overwriting existing plugin configurations and leading to a compromise of other plugins' functionality. The patches introduce strict validation, first with a denylist and then improved with an allowlist, on the tool and name parameters in all related ToolConfigModel functions to ensure they do not contain any path traversal or other malicious characters.