Blog35.7K views2,384 votes0 replies2,746 following
Why untrusted YAML can execute code, and how to load it safely
Parsing untrusted YAML with an unrestricted loader can execute arbitrary code. Learn why yaml.safe_load is the safer default and where it still has limits.