VDB
Sign up
CRITICAL9.8

PYSEC-2024-262

Quick fix

PYSEC-2024-262 — agentscope: upgrade to the fixed version with the command below.

pip install --upgrade 'agentscope>=0.0.5a1'

Details

In agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. Within this function, the line result = eval(s) poses a security risk as it can directly execute user-provided commands.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/agentscope
Introduced in: 0Fixed in: 0.0.5a1
Fixpip install --upgrade 'agentscope>=0.0.5a1'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/agentscope"]}'