VDB
Sign up
—

PYSEC-2018-49

Quick fix

PYSEC-2018-49 — pyyaml: upgrade to the fixed version with the command below.

pip install --upgrade 'pyyaml>=5.1'

Details

In PyYAML before 5.1, the yaml.load() API could execute arbitrary code if used with untrusted data. The load() function has been deprecated in version 5.1 and the 'UnsafeLoader' has been introduced for backward compatibility with the function.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pyyaml
Introduced in: 0Fixed in: 5.1
Fixpip install --upgrade 'pyyaml>=5.1'

References