You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two nodes which will be caught by ComfyUI's upcoming security measures. They're both innocuous, but I need to resolve them. The gtUIBaseRagModule.py issue should be resolvable - but I'm not sure yet how to solve the gtUICodeExecutionTask.py one.
Security warnings found:
nodes/rag/gtUIBaseRagModule.py:34:24: S307 Use of possibly insecure function;
consider using `ast.literal_eval`
|
32 | # Try to evaluate the string as a dictionary
33 | try:
34 | return eval(f"dict({params})")
| ^^^^^^^^^^^^^^^^^^^^^^^ S307
35 | except Exception:
36 | # If evaluation fails, try to parse it as JSON
|
nodes/tasks/gtUICodeExecutionTask.py:233:5: S102 Use of `exec` detected
|
[231](https://github.com/griptape-ai/ComfyUI-Griptape/actions/runs/12971183494/job/36177302149#step:3:245) | """
232 | # Compile and execute the code
[233](https://github.com/griptape-ai/ComfyUI-Griptape/actions/runs/12971183494/job/36177302149#step:3:247) | exec(wrapped_code, exec_globals, exec_locals)
| ^^^^ S102
[234](https://github.com/griptape-ai/ComfyUI-Griptape/actions/runs/12971183494/job/36177302149#step:3:248) |
235 | # Extract the dynamically created function
|
We will soon disable exec and eval, and multiple statements in a single line, so
this will be an error soon.
The text was updated successfully, but these errors were encountered:
There are two nodes which will be caught by ComfyUI's upcoming security measures. They're both innocuous, but I need to resolve them. The
gtUIBaseRagModule.py
issue should be resolvable - but I'm not sure yet how to solve thegtUICodeExecutionTask.py
one.The text was updated successfully, but these errors were encountered: