banks is vulnerable to Unsafe Reflection
60
CVE Score
Medium
Unsafe Reflection
The completion extension resolves tool callables by reading each tool's import_path and loading it dynamically with importlib.import_module and getattr. Tool definitions are parsed from the rendered completion body, so an import_path influenced by untrusted prompt or tool data can point to arbitrary modules and functions such as os.system. When the model issues a matching tool call, the resolved callable is invoked with model-supplied arguments, enabling arbitrary code execution on the host. The fix removes the dynamic importlib lookup, resolves tools only from an explicit allowlisted callable registry populated by the tool filter, and stops sending import_path to the model.
Upgrade the banks library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application uses the {% completion %} function-calling feature with tool definitions that can be influenced by untrusted input.
1.4.0 - 2.4.2
Fixed in 2.4.3banks is vulnerable to Unsafe Reflection in versions 1.4.0 - 2.4.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.