This module's core functionality is to solicit Python plotting code from a model and execute it to produce visualization images. The code contains a critical security risk: it calls exec() on untrusted, model-generated code with access to real data (dataframe and model) and full globals, with no sandboxing or validation. That enables arbitrary code execution, data exfiltration, file system and process manipulation, and persistence via stored artefacts. There are no hardcoded secrets or direct evidence of built-in malware, but the design makes the component dangerous in hostile or untrusted environments. Mitigations would include removing exec(), executing code in a strict sandbox/container, validating or transpiling code safely, limiting accessible globals, and sanitizing stored metadata.
Live on PyPI for 5 hours and 32 minutes before removal. Socket users were protected even while the package was live.