PyYAML

YAML parser and emitter for Python

6.0.4Latest, 20 Nov 2026
1.4BDownloads, last month
0Advisories on the latest
8Advisories, all versions
MITLicence
3KStars
4.8/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
Critical Deserialization of Untrusted Data in PyYAML CVE-2019-20477 Fixed in 5.2 20 Apr 2021
Critical Improper Input Validation in PyYAML CVE-2020-1747 Fixed in 5.3.1 20 Apr 2021
Critical Improper Input Validation in PyYAML CVE-2020-14343 Fixed in 5.4 25 Mar 2021
PYSEC-2021-142 CVE-2020-14343 Fixed in 5.4 9 Feb 2021
PYSEC-2020-96 CVE-2020-1747 Fixed in 5.3.1 24 Mar 2020
PYSEC-2020-176 CVE-2019-20477 Fixed in 5.2b1 19 Feb 2020
Critical PyYAML insecurely deserializes YAML strings leading to arbitrary code execution CVE-2017-18342 Fixed in 5.1 4 Jan 2019
PYSEC-2018-49 CVE-2017-18342 Fixed in 5.1 27 Jun 2018

In the news

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.