—
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
References
- https://github.com/yaml/pyyaml/pull/74[WEB]
- https://github.com/yaml/pyyaml/blob/master/CHANGES[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/[WEB]
- https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation[WEB]
- https://github.com/marshmallow-code/apispec/issues/278[REPORT]
- https://github.com/yaml/pyyaml/issues/193[REPORT]
- https://security.gentoo.org/glsa/202003-45[ADVISORY]
- https://github.com/advisories/GHSA-rprw-h62v-c2w7[ADVISORY]