PyPI: pyyaml

CVE-2017-18342

Safety vulnerability ID: SFTY-20180627-11685

Safety legacy ID: pyup.io-36333

Pyyaml before 4 uses ``yaml.load`` which has been assigned CVE-2017-18342.

Created at: Nov 6, 2025Updated at: Nov 6, 2025

Overview

PyYAML insecurely deserializes YAML strings leading to arbitrary code execution

Advisory

Pyyaml before 4 uses ``yaml.load`` which has been assigned CVE-2017-18342.

Affected Package

Affecting pyyaml package, versions
<4

Also affects

---

How to Fix

Upgrade
pyyaml
to
4.2b1
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

References

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more