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: Oct 9, 2026Updated at: Oct 9, 2026

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<5.1

Also affects

---

How to Fix

Upgradepyyamlto5.1or 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.

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