ADVISORIES

PyPA Advisory Database

PYSEC-2022-204

Details

The package cookiecutter before 2.1.1 are vulnerable to Command Injection via hg argument injection. When calling the cookiecutter function from Python code with the checkout parameter, it is passed to the hg checkout command in a way that additional flags can be set. The additional flags can be used to perform a command injection.

Affected packages

EcosystemPackageAffected versions
PyPIcookiecutter
All versions before 2.1.1 (fixed in 2.1.1)

References