pyyaml vulnerabilities

YAML parser and emitter for Python

Registry
PyPI
Latest
6.0.3
License
MIT

4 known advisories

The latest version, 6.0.3, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'pyyaml>=6.0.3'

Is your project on an affected pyyaml?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for pyyaml

  • CriticalCVE-2019-20477GHSA-3pqx-4fqf-j49f20 Apr 2021

    Deserialization of Untrusted Data in PyYAML

    Affected
    >=5.1 <5.2
    Fixed in
    5.2
  • CriticalCVE-2020-1747GHSA-6757-jp84-gxfx20 Apr 2021

    Improper Input Validation in PyYAML

    Affected
    >=5.1b7 <5.3.1
    Fixed in
    5.3.1
  • CriticalCVE-2020-14343GHSA-8q59-q68h-6hv425 Mar 2021

    Improper Input Validation in PyYAML

    Affected
    <5.4
    Fixed in
    5.4
  • CriticalCVE-2017-18342GHSA-rprw-h62v-c2w74 Jan 2019

    PyYAML insecurely deserializes YAML strings leading to arbitrary code execution

    Affected
    <5.1
    Fixed in
    5.1

Is your pyyaml version vulnerable?

Which of your client projects still run an old pyyaml?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.