CanonicalSecurity
Insecure deserialization (CWE-502): pickle.loads and yaml.load(untrusted) can execute arbitrary code
Python’s pickle and PyYAML’s default Loader can execute arbitrary code while deserializing — never run them on data you didn’t create yourself. Use json, or yaml.safe_load / Loader=yaml.SafeLoader.
securitydeserializationcwe-502