Install
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
Source · Homepage · Ask AI Mode · · Markdown
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
- GHSA-WF6J-7HVR-GR93: GHSA-wf6j-7hvr-gr93: Arbitrary Code Execution via PyYAML Target Blocklist Bypass in hydra-core dev.to, 27 Oct 2026
- GHSA-wf6j-7hvr-gr93: Arbitrary Code Execution via PyYAML Target Blocklist Bypass in hydra-core cvereports.com, 27 Oct 2026
- I built a data-contract validator in pure Python (no pandas, no PyYAML) and it caught a 30% revenue ghost dev.to, 5 Jun 2026
- Ruamel and PyYaml fail to combine custom tag and merge operator stackoverflow.com, 12 Feb 2025
- Save/dump a YAML file with comments in PyYAML stackoverflow.com, 15 Nov 2024
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.