PyPI package
PyYAML vulnerabilities by version
The latest release, 6.0.3 (Sep 25, 2025), has no known vulnerabilities. 4 of the 10 most recent releases have known vulnerabilities. OSV.dev lists 4 advisories for PyYAML; the newest was published on Apr 20, 2021.
PyPI (opens in a new tab) describes it as “YAML parser and emitter for Python”
- Latest release
- 6.0.3
- Sep 25, 2025, no known vulnerabilities
- Downloads last week
- 253.2M
- All versions, from pypistats.org
- Advisories on OSV.dev
- 4
- Newest Apr 20, 2021
- Licence
- MIT
Recent releases
PyPI doesn’t publish downloads per version, so these are the newest releases, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.
Release lines
The newest release of each minor line, from the registry. PyYAML doesn’t publish support dates we can check.
Newest advisories
The 4 most recently published, with the versions each one affects.
CriticalCVE-2019-20477 on OSV.dev (opens in a new tab)GHSA-3pqx-4fqf-j49f
Deserialization of Untrusted Data in PyYAML
Affects >= 5.1, < 5.2. Published Apr 20, 2021.
CriticalCVE-2020-1747 on OSV.dev (opens in a new tab)GHSA-6757-jp84-gxfx
Improper Input Validation in PyYAML
Affects >= 5.1b7, < 5.3.1. Published Apr 20, 2021.
CriticalCVE-2020-14343 on OSV.dev (opens in a new tab)GHSA-8q59-q68h-6hv4
Improper Input Validation in PyYAML
Affects < 5.4. Published Mar 25, 2021.
CriticalCVE-2017-18342 on OSV.dev (opens in a new tab)GHSA-rprw-h62v-c2w7
PyYAML insecurely deserializes YAML strings leading to arbitrary code execution
Affects < 5.1. Published Jan 4, 2019.
Which PyYAML do you have?
Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.
How this page is checked
StackPrism reads every OSV.dev advisory for PyYAML, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from pypistats.org. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against OSV.dev, CISA KEV, PyPI, pypistats.org and deps.dev.