VDB
Sign up
MEDIUM6.5

PYSEC-2022-43146

Quick fix

PYSEC-2022-43146 — py-cord: upgrade to the fixed version with the command below.

pip install --upgrade 'py-cord>=2.0.1'

Details

py-cord is a an API wrapper for Discord written in Python. Bots creating using py-cord version 2.0.0 are vulnerable to remote shutdown if they are added to the server with the `application.commands` scope without the `bot` scope. Currently, it appears that all public bots that use slash commands are affected. This issue has been patched in version 2.0.1. There are currently no recommended workarounds - please upgrade to a patched version.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/py-cord
Introduced in: 2.0.0Fixed in: 2.0.1
Fixpip install --upgrade 'py-cord>=2.0.1'

References